Engine Dev Configuration
1. Get the Source
git clone https://github.com/ippclub/Dora-SSR.git
2. Game Engine Development
Windows
- Install Visual Studio Community 2022.
- Open the project file in the IDE: Project/Windows/Dora.sln.
- Compile, debug, and run the project.
macOS
- Install latest Xcode.
- Open the project file in the IDE: Project/macOS/Dora.xcodeproj.
- Compile, debug, and run the project.
iOS
- Install latest Xcode.
- Open the project file in the IDE: Project/iOS/Dora.xcodeproj.
- Compile, debug, and run the project.
Android
-
Manually generate Lua bindings.
# ubuntu
sudo apt-get install lua5.1
sudo apt-get install -y luarocks
sudo luarocks install luafilesystem
cd Tools/tolua++
lua tolua++.lua
# macOS
cd Tools/tolua++
./build.sh
# Windows
cd Tools\tolua++
build.bat -
Install latest Android Studio.
-
Open the project directory in the IDE: Project/Android/Dora.
-
Compile, debug, and run the project.
Linux
Ubuntu
-
Manually generate Lua bindings.
sudo apt-get install lua5.1
sudo apt-get install -y luarocks
sudo luarocks install luafilesystem
cd Tools/tolua++
lua tolua++.lua -
Install dependent packages.
sudo apt-get install -y libsdl2-dev libgl1-mesa-dev x11proto-core-dev libx11-dev
-
Run the compile scripts.
- For the first time build
# For arm architecture
cd Project/Linux
make arm
# For x86_64 architecture
cd Project/Linux
make x86_64- For incremental build
cd Project/Linux
make -
Run the generated software.
cd Assets
../Project/Linux/build/dora-ssr
ArchLinux
-
Install dependent packages.
sudo pacman -S lua51 luarocks sdl2 gcc make cmake --needed
# Because the lua version must be 5.1,you need to use lua 5.1 instead of the newest version of lua
# The easiest way is using 'ln' to create a soft link
sudo ln -s /usr/bin/lua5.1 /usr/local/bin/lua -
Manually generate Lua bindings.
sudo luarocks --lua-version 5.1 install luafilesystem
cd Tools/tolua++
lua5.1 tolua++.lua -
Run the compile scripts.
- For the first time build
# For arm architecture
cd Project/Linux
make arm
# For x86_64 architecture
cd Project/Linux
make x86_64- For incremental build
cd Project/Linux
make -
Run the generated software.
cd Assets
../Project/Linux/build/dora-ssr
3. Dora Dora Editor Development
- Compile and run the Dora SSR engine.
- Install the latest version of Node.js.
- Initialize the project and enter the Dora Dora editor development mode.
cd Tools/YarnEditor && yarn && yarn build
rm -rf ../dora-dora/public/yarn-editor
mv dist ../dora-dora/public/yarn-editor
cd ../../Tools/dora-dora
yarn
yarn start