axmol/samples/Cpp/TestCpp/Resources/ccb/Published-iOS/main.js

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();