mirror of
https://github.com/u0u0/Cocos2d-Lua-Community.git
synced 2026-06-05 19:25:22 +08:00
add LuaGameRunner & test cases.
This commit is contained in:
@@ -96,14 +96,13 @@ bool AppDelegate::applicationDidFinishLaunching()
|
||||
auto director = Director::getInstance();
|
||||
auto glview = director->getOpenGLView();
|
||||
if (!glview) {
|
||||
string title = "__PROJECT_COCOS_NAME__";
|
||||
glview = cocos2d::GLViewImpl::create(title.c_str());
|
||||
glview = cocos2d::GLViewImpl::create("__PROJECT_COCOS_NAME__");
|
||||
director->setOpenGLView(glview);
|
||||
director->startAnimation();
|
||||
}
|
||||
|
||||
// set default FPS
|
||||
Director::getInstance()->setAnimationInterval(1.0 / 60.0f);
|
||||
director->setAnimationInterval(1.0 / 60.0f);
|
||||
|
||||
// register lua module
|
||||
auto engine = LuaEngine::getInstance();
|
||||
|
||||
Reference in New Issue
Block a user