0xf00ff00f / rotator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A shape rotating game. Play it here.

If you like this you should get the Android version, it looks a lot nicer!

Building

Pull down submodules:

$ git submodule update --init --recursive

Native binary

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.

WebAssembly binary

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.

About

License:Other


Languages

Language:C++ 97.0%Language:GLSL 1.6%Language:CMake 1.5%