且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Sprite Kit中加载.tmx(平铺地图)?

更新时间:2023-02-02 09:52:10

查看 TilemapKit 。与其他解决方案不同,加载并呈现Tiled支持的所有(!)地图类型和变体,包括交错的iso和hex图!

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设计得恰当,就像OOP框架一样,并公开存储在TMX文件中的所有数据。换句话说,它绝对不仅仅是一个让所有东西都陷入其中的类。

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也被测试为与Swift 和Mac应用完全兼容。

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

如果您有任何问题或要求,请访问 TilemapKit论坛。我也经常发布开发报告,以便您查看接下来会发生什么。

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.

免责声明:如果现在不明显,我是TilemapKit开发人员之一。 :)

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