axmol/tests/lua-tests/src/controller.lua

14 lines
252 B
Lua
Raw Normal View History

-- avoid memory leak
collectgarbage("setpause", 100)
collectgarbage("setstepmul", 5000)
require "src/mainMenu"
----------------
-- run
local scene = cc.Scene:create()
scene:addChild(CreateTestMenu())
cc.Director:getInstance():runWithScene(scene)