本文介绍了在Sprite Kit中加载.tmx(平铺地图)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有(最好是简单的)方法在iOS 7的Sprite Kit中加载.tmx文件?如果没有,有没有其他选择?

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

推荐答案

查看。与其他解决方案不同,加载并呈现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.

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

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. :)

这篇关于在Sprite Kit中加载.tmx(平铺地图)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-10 23:02