Cross-platform Snake game written in C language.
Extremely simple setup. Works on Windows, Linux and Mac!
The purpose of this program is to demonstrate how to make a very simple game in C that works on all platforms. Please note that I'm not very proficient with C. The source code and overall architecture of the game can be improved in lots of ways. I would be happy to receive Pull Requests if you feel like something needs to be changed/improved.
Just run run-windows.bat
in snake
folder and you are good to go! All the necessary dependencies are already included in _win
folder
The game wasn't tested on Mac OS. Please open an issue if it doesn't work for you
- Install clang by typing "clang" in Terminal and clicking the Install button.
- Open a
snake
folder and runrun-mac.sh
TDOO: test on linux
-
Install tcc, SDL2-dev, and GLEW-dev. Eg. for Debian/Ubuntu:
sudo apt install tcc libsdl2-dev libsdl2-ttf-dev libglew-dev
-
Open a
snake
folder and runrun-linux.sh
Wanna try more games? Check out Tiny C Games repository to find more mini games.
This project is inspired by @superjer and his tinyc.games repo.