A simple game-like program thing made to experiment with some concepts I haven't tried before, mainly the seperation of program logic and rendering code. This allows the same application to be compiled to multiple platforms, due to all rendering calls, input calls, and other such calls being defined in an API that is then implemented on a per-platform basis.
As of now, there are implemtations for both a native version based on SDL2, and a web version through WebAssembly and HTML5+JavaScript
Building the native version requires these tools:
- clang
- wasm-ld
- make
...and these libraries:
- SDL2
An unoptimized version of the native program can be built by running make debug from the command-line. For an optimized version of the program, run make release
As this repository currently hosts the web version of the application, the on-line version is already built and can be found under bin/. To see the on-line version in action, visit https://bytanulo.github.io/shapebox/
Re-building the web version requires these tools:
- clang
- wasm-ld
- make
- tsc
To re-build it, run make wasm from the command-line