A classic Snake game coded in C using SDL3, featuring retro-style/user-responsive graphics and smooth gameplay.
- Classic Snake Gameplay: Control a growing snake to eat apples and avoid collisions
- Super responsive graphics: Works on every screen, it calculates every object's size based on the user's screen size
- Retro Graphics: 640x480 resolution with a tiled, retro-inspired visual style
- Smooth Controls: WASD or arrow key movement with collision prevention
- Sounds effects & music: I plan to add SDL3_mixer for sound effects and music, for better user experience
- Difficulties: Bigger and smaller boards... faster and slower snake... etc!
- And much more!
- SPACE: Start the game
- ESCAPE: Exit the game
- W / UP ARROW: Move up
- S / DOWN ARROW: Move down
- A / LEFT ARROW: Move left
- D / RIGHT ARROW: Move right
- ESCAPE: Exit the game
- SPACE: Restart the game
- SDL3: Main graphics and input library
- SDL3_ttf: Text rendering library
- C Compiler: GCC, Clang, or MSVC
- Font File: TTF font file for text rendering
Make sure you have SDL3 and SDL3_ttf installed on your system:
# Ubuntu/Debian
sudo apt-get install libsdl3-dev libsdl3-ttf-dev
# macOS (with Homebrew)
brew install sdl3 sdl3_ttf
# Windows
# Download SDL3 and SDL3_ttf development libraries from libsdl.org or through vcpkg package manager (recommended)

