A snake game with block-pushing mechanics, built with C and SDL3.
A noice hand crafted sloppy code by yours truly...
- GCC
- SDL3
- SDL3_image
- SDL3_ttf
brew install sdl3 sdl3_image sdl3_ttfOn Apple Silicon Macs, you may need to add these to your ~/.zshrc so the compiler can find Homebrew libraries:
export CPATH=/opt/homebrew/include:$CPATH
export LIBRARY_PATH=/opt/homebrew/lib:$LIBRARY_PATHsudo apt install libsdl3-dev libsdl3-image-devDownload SDL3 development libraries from the SDL releases page and add them to your compiler's include/lib paths.
make
./gameWASD - to control the snake.
Arrow keys - on homepage to switch level.
Esc - while playing to pause.
Other:
when you collide with a block, press that direction again to push the block.
-
I used AI to help make a release for MacOs with Claude code.
-
It was also late before the deadline so I used Claude code to help with level 4. (I am sure you can tell 😭)
-
everything else was done by me! (first time using SDL3, was fun!)