Loading large background images in cocos2d

爷,独闯天下 提交于 2019-12-08 07:27:33

You can't use textures larger then 1024x1024 or 2048x2048 for iphone/ipod 4 (maybe iPad too). So the only way to render such big image is rendering it's parts.

I would try to load the parts as the player moves (better in a separate thread).

Also maybe it is possible for you to use Parallax background. If so - use it.

If your image is made from a lot of identical parts then it's a good idea to use CCTMXTiledMap.

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