开发者

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

开发者 https://www.devze.com 2023-01-05 09:03 出处:网络
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 imag

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

精彩评论

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