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 

 

相关文章:

  • 2021-12-20
  • 2022-02-11
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
猜你喜欢
  • 2021-11-05
  • 2021-09-02
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
相关资源
相似解决方案