axmol/samples/Lua/TestLua/Resources/luaScript/controller.lua

14 lines
259 B
Lua

-- avoid memory leak
collectgarbage("setpause", 100)
collectgarbage("setstepmul", 5000)
require "luaScript/mainMenu"
----------------
-- run
local scene = CCScene:create()
scene:addChild(CreateTestMenu())
CCDirector:sharedDirector():runWithScene(scene)