Skip to content

Instantly share code, notes, and snippets.

@paytonrules
Created November 5, 2009 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paytonrules/227017 to your computer and use it in GitHub Desktop.
Save paytonrules/227017 to your computer and use it in GitHub Desktop.
-(void) initializeDirector
{
[[Director sharedDirector] setDeviceOrientation:CCDeviceOrientationLandscapeLeft];
[[Director sharedDirector] setAnimationInterval:1.0/60];
[[Director sharedDirector] setDisplayFPS:YES];
// create an openGL view inside a window
[[Director sharedDirector] attachInView:window];
[[Director sharedDirector] runWithScene: [GameScene scene]];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment