Cocos2d-Lua-Community is a improved of Cocos2d-x 4.0, and easy to use Lua game engine. It's Lua "frameworks" compatible with Quick-Cocos2dx-Community v3.7.x.
- No installation required, No Environment Setup.
- OpenAL audio output engine, designed for Lua.
- Integrate more thirdpart Lua libraries: protobuf,lsqlite3 etc.
- Refactor TMX runtime, support Tiled Map Editor 1.2+.
- Spine runtime update to 3.8.
- Support FairyGUI.
- Mac OS X 10.11+, Xcode 10+
- Windows 7+, Visual Studio 2019
- Python 3.5+
- Android: NDK r20+, Android Studio 3.4+
- Cmake 3.16+ (In Android Studio's cmake plugin 3.10+)
- iOS 9.0+ for iPhone / iPad games
- Android 3.0.0+ for Android
- Mac OS X v10.11+ for Mac games
- Windows 7+ for Win games, Microsoft Visual C++ Redistributable for Visual Studio 2019 x86, Microsoft Visual C++ Redistributable for Visual Studio 2019 x64
LuaGameRunner is a replacement of old Player. I just "Keep It Simple and Stupid".
- By default, it run engine test cases.
- By pass parameter, it can run specified project's Lua code.
- Support Shortcut keys:
- "F5": reload current project.
$cd Cocos2d-Lua-Community
$open ./tools/runner/bin/LuaGameRunner.app
>cd Cocos2d-Lua-Community
>tools/runner/bin/win32/LuaGameRunner.exe
- --width (int), Game window width.
- --height (int), Game window height.
- --scale (int), Window scale factor, the value devide by 100 to get the final scale.
- --log, Write log to file.
- --gamedir, Lua Game project fullpath.
- --writedir, writeable path. Default is same with gamedir.
example:
>LuaGameRunner.exe --width 1136 --height 640 --scale 75 --log --gamedir /newprj --writedir /newprj/output
Require Python 3.5+ installed.
To create a new project.
$cd Cocos2d-Lua-Community
$./tools/CreateProject.py -p www.www.newgame -o /ParentPath
The prject root directory is
/ParentPath
.
To get help info of CreateProject.py.
$CreateProject.py -h
修改exePath为runner 全路径
- win32
${engineRoot}\\tools\\runner\\bin\\LuaGameRunner\\LuaGameRunner.exe
- mac
${engineRoot}/tools/runner/bin/LuaGameRunner.app/Contents/MacOS/LuaGameRunner
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Cocos2d-Lua-Community-launch",
"type": "lua",
"request": "launch",
"runtimeType": "Cocos2",
"localRoot": "${workspaceRoot}",
"commandLine": "--width 1136 --height 640 --scale 75 --log --gamedir ${workspaceRoot} --writedir ${workspaceRoot}/log",
"port": 7003,
//“exePath”:"D:workspace\\Cocos2d-Lua-Community\\tools\\runner\\bin\\LuaGameRunner\\LuaGameRunner.exe",
"exePath": "/Users/dengke/Documents/Cocos2d-Lua-Community/tools/runner/bin/LuaGameRunner.app/Contents/MacOS/LuaGameRunner",
"fileExtNames": [
".lua",
".txt",
".lua.txt",
".bytes"
],
"isFoxGloryProject": false,
"printType": 1
},
{
"name": "Cocos2d-Lua-Community(remote debugging)",
"type": "lua",
"request": "attach",
"runtimeType": "Cocos2",
"localRoot": "${workspaceRoot}",
"port": 7003,
"fileExtNames": [
".lua",
".txt",
".lua.txt",
".bytes"
],
"isFoxGloryProject": false,
"printType": 1
}
]
}