现在的位置: 首页 > 综合 > 正文

cocos2d支持ipad版开启Retina

2012年07月26日 ⁄ 综合 ⁄ 共 616字 ⁄ 字号 评论关闭

cocos2d ipad支持retina (Use Retina Graphics In iPad) 

very easy:

in ccFileUtils.m search for

+(NSString*) getDoubleResolutionImage:(NSString*)path

and change the line

if( CC_CONTENT_SCALE_FACTOR() == 2)

for the line

if( CC_CONTENT_SCALE_FACTOR() == 2 || (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad))

Activate the retina in the appdelegate and DONE!

http://michaelgilkes.info/cocos2d-using-hd-images-for-ipad-in-a-universal-app/

 

iphone移植到ipad版:子龙山人(译)如何使用cocos2d制作一个打地鼠的游戏

http://www.cnblogs.com/andyque/archive/2011/05/20/2050426.html 

 

抱歉!评论已关闭.