A shape rotating game. Play it here.
If you like this you should get the Android version, it looks a lot nicer!
Pull down submodules:
$ git submodule update --init --recursive
Install dependencies. On Ubuntu:
$ sudo apt install libsdl1.2-dev libglew-dev
Build with CMake:
$ cmake -B build -S .
$ cmake --build build --parallel
Now run the game
binary to play.
It should build on MacOSX, though I haven't tested.
Download and install the Emscripten SDK. Follow the instructions here.
Set up the emsdk environment variables with something like:
$ source path/to/emsdk/emsdk_env.sh
Build with CMake:
$ emcmake cmake -B build -S .
$ cmake --build build --parallel
This should generate the game.{html,wasm,js}
files.