AppDelegate.m 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #import "cocos2d.h"
  2. #import "AppDelegate.h"
  3. #import "IKExample.h"
  4. @implementation AppController
  5. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  6. CCFileUtils* sharedFileUtils = [CCFileUtils sharedFileUtils];
  7. sharedFileUtils.searchPath =
  8. [NSArray arrayWithObjects:
  9. [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Images"],
  10. [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Fonts"],
  11. [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Resources-shared"],
  12. [[NSBundle mainBundle] resourcePath],
  13. nil];
  14. [self setupCocos2dWithOptions:@{
  15. CCSetupDepthFormat: @GL_DEPTH24_STENCIL8,
  16. // CCSetupTabletScale2X: @YES,
  17. // CCSetupScreenMode: CCScreenModeFixed,
  18. // CCSetupScreenOrientation: CCScreenOrientationPortrait,
  19. CCSetupShowDebugStats: @YES,
  20. }];
  21. [[CCDirector sharedDirector] runWithScene:[IKExample scene]];
  22. return YES;
  23. }
  24. //- (CCScene*) startScene {
  25. // return [SpineboyExample scene];
  26. //}
  27. @end