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];
  4. // Enables High Res mode
  5. if ([UIScreen instancesRespondToSelector:@selector(scale)]) {
  6. [director setContentScaleFactor:[[UIScreen mainScreen] scale]];
  7. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.