function MyApp:run() local glview=cc.Director:getInstance():getOpenGLView() glview:setFrameSize(480,320) cc.FileUtils:getInstance():addSearchPath("res/") self:enterScene("MainScene") --self:enterScene("TestMap") end