如何为 cocos2d 为 Universal(iPhone、iPad)创建单个瓦片地图? [英] How to create single tile map for Universal(iPhone,iPad) for cocos2d?

查看:14
本文介绍了如何为 cocos2d 为 Universal(iPhone、iPad)创建单个瓦片地图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能创建可用于 iPhone(Normal&Retina) 和 iPad 的单个平铺地图.

Is there any possibility to create a single tile map that can be used for iPhone(Normal&Retina) and iPad.

如果不能,还有什么选择?

If Can't what is the alternative?

推荐答案

我也遇到了这个难题,找了一晚上的解决办法,终于找到了.

I also encountered this dilemma, and after a night of finding solutions, this is what I've found out.

您只需要一个 .tmx 文件,它应该只用于非 iPhone 分辨率.

You only need ONE .tmx file, and it should just be for the non-iphone resolution.

如果您想支持所有 iOS 设备,你的 Xcode 项目中会有这样的东西:

If you'd like to support all iOS devices, you'd have something like this in your Xcode Project:

  • TileMap.tmx
  • TileAtlas.png
  • TileAtlas-hd.png
  • TileAtlas-ipadhd.png
  • TileMap-ipad.png (可选) <- 如果你没有设置 ipad 后缀为-hd"

这篇关于如何为 cocos2d 为 Universal(iPhone、iPad)创建单个瓦片地图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆