Skip to content

Solid. The game engine for snake.... This made funny at 2:02 AM.

License

Notifications You must be signed in to change notification settings

gravypod/solid-snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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....

git submodule update --init --recursive

Pulling Changes

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.

About

Solid. The game engine for snake.... This made funny at 2:02 AM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages