paytonrules (owner)

Revisions

gist: 220429 Download_button fork
public
Public Clone URL: git://gist.github.com/220429.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-(void) initializeDirector
{
[producer initializeDirectorWithWindow:window scene:[GameScene scene]];
// before creating any layer, set the landscape mode
// Initialize Director
[[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]];
}