Skip to content

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShapeBox

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.

Supported targets

As of now, there are implemtations for both a native version based on SDL2, and a web version through WebAssembly and HTML5+JavaScript

Building

Native

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

Web

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

About

A small 2D "game" made to experiment with multi-target compilation, compilation to WebAssembly, and simple physics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages