How to scale images for cocos2d game to iPhone/iPad (with and without Retina) -
i'm working on game in cocos2d (1.0.1), artist sent me psd project files, 3200x1800 resolution 300ppi. i'm supposed make ipad , iphone , without retina display. realised don't know nothing graphics. best way prepare images iphone , ipad (both hd , sd). should scale 480x320? should use apps texture packer? how without loss?
easiest way make graphics both ipad retina display , iphone retina display , use texture packer scale them automagically non-retina size each type of device.
as workflow iphone becomes:
create retina graphics 640x960 display.
use texture packer create textures retina version , use texture packer scale retina texture down lower-resolution device there.
look @ how use resulting images , plists in cocos2d.
in regards #3 there tutorials here:
http://www.codeandweb.com/texturepacker/tutorials/#cocos2d
cocos2d @ handling point conversions between retina , non-retina versions of game. once tell use retina graphics if available can program game using standard 320x480 cocos2d point system , positioning work in bigger retina display enabled version. (or 768x1024 ipad version).
Comments
Post a Comment