-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
65 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# 2D Game Engine | ||
|
||
This repository contains a 2D game engine written in C. | ||
|
||
# How to start development... | ||
|
||
Use `git clone --recursive <url>` to clone this repo. | ||
|
||
## If you forgot.... | ||
|
||
```bash | ||
git submodule update --init --recursive | ||
``` | ||
|
||
## Pulling Changes | ||
|
||
```bash | ||
git pull --recursive-submodules | ||
``` | ||
|
||
# Building | ||
|
||
## Compilation | ||
|
||
| 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 | | ||
|
||
## Used Libraries | ||
|
||
| 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 | | ||
|
||
## Build System | ||
|
||
I'm using CMake & GCC for this project. To build this project you must... | ||
|
||
1. Clone the Project | ||
2. `mkdir build # Make a new build directory` | ||
3. `cd build # Enter directory` | ||
4. `cmake .. # Build the Makefile from cmake` | ||
5. `make # Build the project` | ||
6. `./engine # Run the project` | ||
|
||
Your CWD must be within the build directory. | ||
|
||
# Keybindings | ||
|
||
| 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. |