Skip to content

Instantly share code, notes, and snippets.

@kexoth
Created May 4, 2013 04:59
Show Gist options
  • Save kexoth/5516261 to your computer and use it in GitHub Desktop.
Save kexoth/5516261 to your computer and use it in GitHub Desktop.
var appFiles = [
'./Src/resource.js',
'./Src/MainLayer.js',
'./Src/GameOver.js',
'./Src/Enemy.js',
'./Src/Projectile.js',
'./Src/BiasedRandomGenerator.js'
];
for( var i=0; i < appFiles.length; i++) {
require( appFiles[i] );
}
var director = cc.Director.getInstance();
director.setDisplayStats(true);
// set FPS. the default value is 1.0/60 if you don't call this
director.setAnimationInterval(1.0 / 60);
var mainScene = MenuLayer.scene();
// run
director.runWithScene(mainScene);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment