How to create single tile map for Universal(iPhone,iPad) for cocos2d?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-13 07:21:49

问题


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?


回答1:


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"



回答2:


Take a look at Tiled. When building a universal app, it's a good idea to generate your (vector) art at the highest required resolution, and scale that same artwork down for every lower resolution device.



来源:https://stackoverflow.com/questions/13763769/how-to-create-single-tile-map-for-universaliphone-ipad-for-cocos2d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!