Load a .tmx (Tiled Map) in Sprite Kit?

前端 未结 3 1811
眼角桃花
眼角桃花 2020-12-05 14:37

Is there a (preferably easy) way to load a .tmx file in iOS 7\'s Sprite Kit? If not, are there any alternatives?

3条回答
  •  甜味超标
    2020-12-05 15:19

    Check out TilemapKit for Sprite Kit. Unlike other solutions it loads and renders all (!) map types and variations supported by Tiled, including staggered iso and hex maps!

    TilemapKit is properly engineered like a OOP framework should be, and exposes all data that is stored in the TMX file. In other words it's definitely not just a single class that got everything crammed into it.

    Tile picking (point to coord, coord to point conversion) for all map types/variations is built-in. More awesome features on the way, review the roadmap and check out the Class Reference.

    TilemapKit is also tested to be fully compatible with Swift and Mac apps, too.

    Visit the TilemapKit forum if you have any questions or requests. I'm also posting frequent development reports so you can check what's coming up next.

    Disclaimer: If it isn't obvious by now, I'm one of the TilemapKit developers. :)

提交回复
热议问题