开发者

Cocos2d-iphone load large scrollable image like "plant VS zombie"

How to I load a very large image eg 1024*4608 us开发者_StackOverflow社区ing cocos2d-iphone and be able to scroll the image?


Your application will be more responsive if you break up your very large image into tiles. Tiles are smaller images, usually 256 X 256, that can be reassembled by your application into the large image. You display just the tiles that are visible. This uses less phone memory.

Here's a blog post with some Cocos2D-iPhone image scrolling.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜