如何为cocos2d创建通用(iPhone,iPad)的单个瓷砖地图? [英] How to create single tile map for Universal(iPhone,iPad) for cocos2d?

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

问题描述

是否有可能创建一个可用于iPhone(普通和视网膜)和iPad的单块地图。



如果无法替代?

解决方案

也遇到了这个困境,一个晚上找到解决方案后,这是我发现了。



你只需要一个.tmx文件,它应该只是



如果你想支持所有的iOS设备,
你会在你的Xcode项目中有这样的: / p>


  • TileMap.tmx

  • TileAtlas.png

  • TileAtlas -hd.png

  • TileAtlas-ipadhd.png

  • TileMap-ipad.png(可选)< - 如果您尚未设置ipad后缀到
    -hd


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.

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

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 (optional) <- if you haven't set the ipad suffix to "-hd"

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

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