Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/numpad/c-engine
Experimental Game Engine in C99 which Supports Linux and WebAssembly.
https://github.com/numpad/c-engine
c99 emscripten game-development libwebsockets linux networking opengl opengl-es sdl2 sockets webassembly websockets
Last synced: 2 months ago
JSON representation
Experimental Game Engine in C99 which Supports Linux and WebAssembly.
- Host: GitHub
- URL: https://github.com/numpad/c-engine
- Owner: numpad
- Created: 2023-06-22T19:03:20.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-05T13:58:33.000Z (3 months ago)
- Last Synced: 2024-10-16T06:29:42.578Z (3 months ago)
- Topics: c99, emscripten, game-development, libwebsockets, linux, networking, opengl, opengl-es, sdl2, sockets, webassembly, websockets
- Language: C
- Homepage:
- Size: 17.9 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.libsdl.org/) 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.```bash
# 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
```bash
$ make -f src/server/Makefile
```