SKTiled is a framework for using Tiled assets with Apple’s SpriteKit, built from the ground up with Swift. This project began life as an exercise to learn Apple’s new programming language for a game project, but I’ve decided to release it as open source with the hopes that others will find it useful. SKTiled is up-to-date and supports Tiled’s major features, including all map & object types.
Features:
- iOS & macOS versions
- tvOS version
- parses inline & external tilesets
- translates custom properties for maps, layers, objects & tiles
- renders all projections: (orthogonal, isometric, hexagonal & isometric staggered)
- renders all layer types: (tile, object, image, group)
- supports all compression types: (base64, zlib, gzip)
- renders animated and flipped tiles
- pre-loading of tilesets
- group nodes
- tile objects
- text objects
- template objects
- custom tile & object classes
- generate GKGridGraph graphs from custom attributes
- user-definable cost properties for GKGridGraph nodes
- infinite maps
- tile collision objects
- parse JSON tilemaps
