Inspired by the classic Snake Game. Navigate the snake using WASD or arrow keys to consume food and grow while avoiding collisions with the walls or yourself. Enjoy the retro feel with added sound effects and smooth animations for an engaging gaming experience
- Smooth Snake Movement: Fluid 60 FPS animation with responsive WASD or arrow key inputs
- Game Options: Pick from 3 map sizes (12x12, 16x16, 20x20), 3 speeds, and 1, 3, or 5 apples on screen at once, with a separate high score tracked for each combination
- Collision Detection: Game-over triggers when the snake hits a wall or its own body
- Sound Effects: Immersive sounds to enhance the gameplay experience
- Score Tracking: Dynamic game-over screen displays your score and high score after each round
- Engaging Graphics: Fluid animations and attractive snake graphics for a user-friendly interface
- Programming Language: Python
- Game Library: PyGame
- Clone the repository
- Create and activate a virtual environment:
python3 -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate
pygame doesn't ship wheels for Python 3.14 yet — if the install fails, create the venv with an older Python, e.g.
python3.11 -m venv .venv - Install dependencies:
pip install -r requirements.txt - Run the game:
python snake.py
- Main Development: Oct 2023
- New Features Added: Jan 2024