A Simple Snake Game is a simple snake game in which you simply snake.
- Movement: Arrow keys, WASD, Gamepad, or Mouse/Touch
- Pause: Space/Escape/P/or Start button
- Menu Navigation:
- Keyboard arrows/WASD
- Gamepad D-pad/stick
- Mouse
- Select: Enter/Space/A button
- Back: Escape/B button
- Multiple control schemes:
- Keyboard (Arrow keys or WASD)
- Gamepad (D-pad or analog stick)
- Mouse/Touch (Click/tap where you want to go)
- Top 100 high scores system
- Pause functionality (Space/P/Start button)
- Full controller support with UI navigation
- Sound toggle option
The game can be built for different platforms using the provided build script.
- Godot Engine (version 4.6.2 or later) installed and available in your PATH
- The build script auto-detects
godot,godot4, and theGODOT/GODOT4paths exported bysetup-godot
# Build all platforms (Web, Windows, Linux)
./build.sh
# Build a specific platform
./build.sh web
./build.sh windows
./build.sh linuxThe exported files will be placed in the out/ directory.
Use the smoke test script to verify the game boots into gameplay in headless mode:
./test.sh sourceFor the built Linux export, run:
./build.sh linux
./test.sh linux-exporttest.sh all runs both paths end-to-end. The source smoke test uses the Godot binary in headless mode, loads the main scene, verifies the main menu appears, presses Start, and checks that gameplay spawns the snake and food without opening the game window.
- Audio engine supporting multiple types of waveforms (sin, square, saw)
- Procedural color variations in the snake's tail
- Responsive UI design
- Save system for high scores
- Mobile-compatible design
- Smooth camera system
Created by bluehexagons in a few days as a learning project for Copilot-assisted Godot game development and release.
Feel free to use this code as a learning resource or base for your own projects.