标签:
require "Cocos2d" require "Cocos2dConstants" local TestScene = class("TestScene",function() return cc.Scene:create() end) function TestScene.create() local scene = TestScene.new() return scene end return TestScene
local scene = require("TestScene") local testScene = scene.create() if cc.Director:getInstance():getRunningScene() then cc.Director:getInstance():replaceScene(testScene) else cc.Director:getInstance():runWithScene(testScene) end
标签:
原文地址:http://www.cnblogs.com/yufenghou/p/4302490.html