Skip to content

necromyhan/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

Simple SDL3 game project written in C99.

Features

Build

Linux

Required packages
build-essential
libfreetype6
libfreetype6-dev
libsdl2-dev
  1. Install required packages
sudo apt install build-esseintial libfreetype6 libfreetype6-dev libsdl2-dev


2. Clone repo form github

git clone https://github.com/necromyhan/snake-game


3. Choose project directory

cd snake-game


4. Init and update git submodules

git submodule init
git submodule update


5. Configure CMake

cmake -B build


6. Build project

cmake --build build


Tested on Ubuntu 23.10.1

Windows

Same as Linux, but before cmake build download FreeType sources and copy them into ..\Snake-Game\sdl\SDL_ttf\external\freetype directory.

Tested on Windows 10 22H2

Binary

You can download archives with game from Releases section.
For Linux, self-build is recommended.

Controls

Snake movement and menu navigation with arrows. Enter to choose menu item.