/snake

Simple snake game written with SDL3

Primary LanguageCApache License 2.0Apache-2.0

snake

Simple Snake game written with SDL3.

Required dependencies

  • SDL3 (x64 libraries already provided in lib/)
  • libfreetype-dev (sudo apt install libfreetype-dev for Debian based systems)

Compile

Just run make.

To remove intermediate object files, make clean.

To compile with debug informations: make CFLAGS=-DDEBUG

Compile for other architectures

You need to compile:

for your architecture and put the static library files in lib/, as the x86 counterpart.

Alternatively, you can download the libraries through a package manager and edit the Makefile to refer those libraries.

Play

Just move the snake with the arrow keys.

Scope

This was just a simple test to learn SDL3.

Resources references