Featuring:
- 2D game engine written in C++ with SDL2
- Jungle Hunt - remake of the arcade game "Jungle King" using the game engine
- compilation to binary or WebAssembly using Emscripten
See the live demo.
The game engine uses Verlet integration and is robust enough to support rope physics.
The following is tested on Ubuntu (for another OS, follow the official C++ and SDL installation instructions)
- install
gcc
,make
andgdb
(included in most Linux distros) as well assdl2
,sdl2_mixer
andsdl2_ttf
make
to compile the projectmake run
to start the program
You can run make clean
to clean the build folder
Once the above is setup, if you want to build with Emscripten
- install emscripten
ENV=wasm make
to compile to Wasm. This will also generate theindex.html
file- open the HTML file. You might need a webserver, like
npx http-server
. You can even host the whole/web
folder using something like cloudflare or Firebase
This is an old project than I updated to support Wasm compilation, so don't expect anything crazy. I'm still happy with what I did, especially graphic interpolation and integration algorithm.
Any contribution is more than welcome, especially regarding throttling FPS, optimizing the text engine and making the whole thing reusable :D