This repository contains a 2D game engine written in C.
Use git clone --recursive <url> to clone this repo.
git submodule update --init --recursivegit pull --recursive-submodules| Library Name | Package | Function |
|---|---|---|
| dl | N/A | Dynamically load libraries |
| m | N/A | Standard math library |
| GLFW3 | libglfw3-dev | GLFW 3 headers |
| GL | GPU drivers, N/A | OpenGL headers and libs |
| Python 2 | python2 | Python 2 to build duktape |
| Library Name | Function | URL |
|---|---|---|
| Duktape | JavaScript runtime and C interface | http://duktape.org/ |
| glad | An OpenGL Loader | https://github.com/dav1dde/glad-web |
| linmath | Header based matrix/vector library | https://github.com/datenwolf/linmath.h |
| STB | Used for image parsing functions | https://github.com/nothings/stb |
I'm using CMake & GCC for this project. To build this project you must...
- Clone the Project
mkdir build # Make a new build directorycd build # Enter directorycmake .. # Build the Makefile from cmakemake # Build the project./engine # Run the project
Your CWD must be within the build directory.
| Key | Function |
|---|---|
| W | Move up |
| A | Move Right |
| S | Move Down |
| D | Move Right |
| ESC | Reset Board |
It's snake. You likely know what you're supposed to do. You're the white dot. Touch the red dot. Don't touch yourself.