mirror of https://github.com/axmolengine/axmol.git
18 lines
476 B
JavaScript
18 lines
476 B
JavaScript
// Autogenerated main.js file
|
|
|
|
require("jsb.js");
|
|
|
|
require("MainScene.js");
|
|
|
|
|
|
function main()
|
|
{
|
|
cc.FileUtils.getInstance().loadFilenameLookup("fileLookup.plist");
|
|
//cc.Texture2D.setDefaultAlphaPixelFormat(6);
|
|
var director = cc.Director.getInstance();
|
|
var scene = cc.BuilderReader.loadAsScene("MainScene");
|
|
var runningScene = director.getRunningScene();
|
|
if (runningScene === null) director.runWithScene(scene);
|
|
else director.replaceScene(scene);
|
|
}
|
|
main(); |