Init cocos2d's contentScale


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // Obtain the shared director in order to...
  2. CCDirector *director = [CCDirector sharedDirector];
  3.  
  4. // Enables High Res mode
  5. if ([UIScreen instancesRespondToSelector:@selector(scale)]) {
  6. [director setContentScaleFactor:[[UIScreen mainScreen] scale]];
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.