本文介绍了在 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?

推荐答案

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

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

07-10 23:02