Created
May 4, 2013 04:59
-
-
Save kexoth/5516261 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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