Skip to content

numpad/c-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C-Engine

A nice and simple low-level engine for simple game development in C99.

Building

The engine is being built using C99, OpenGL ES2, SDL2 and a few other great libraries. Supported Platforms are Linux and the Browser (WebAssembly) – Windows and native Android will be implemented eventually and should in theory work without too many changes.

# Linux:
$ make

# WebAssembly:
$ make CC=emcc

Afterwards, run the game using $ ./soil_soldiers or $ emrun soil_soldiers.html, depending on your platform.

To serve the game as a Progressive Webapp, build using CC=emcc and copy src/web/pwa/service-worker.js in the same directory as soil_soldiers.html. The directory src/web/pwa/ needs to be accessible.

Compiling the Server

$ make -f src/server/Makefile