examples for xx game engine
#online demo
https://denghe.github.io/xx_examples/
#requirement ( windows )
- TortoiseGit & git for win ( optional )
- visual studio 2022 with c++ & game
- cmake-gui latest
- python3 latest
- emsdk latest
https://github.com/emscripten-core/emsdk
- git pull
- open cmd window
- .\emsdk.bat install latest
- .\emsdk.bat activate latest --permanent
- .\emsdk.bat list
- find "mingw-?.?.?-64bit"
- .\emsdk.bat install mingw-?.?.?-64bit
- .\emsdk.bat activate mingw-?.?.?-64bit --permanent
- close cmd window
#git usage
- locate directory
- mouse right menu choose: GitSync
- click "Pull"
- click "Submodule Update"
#tips1
upgrade all submode to latest version:
git submodule update --remote
#tips2
how to install SDL2 in emsdk:
- create a file. name = "o.cpp":
int main() { return 0; }
- execute following command line:
em++ -sUSE_SDL=2 o.cpp -o o.html
will show following log:
ports:INFO: retrieving port: sdl2 from https://github.com/libsdl-org/SDL/archive/release-??????????.zip .....