A fun and challenging snake game with multiple levels set in a desert theme.
- Beautiful desert-themed graphics
- Multiple levels with increasing difficulty
- Score tracking and high score system
- Sound effects and background music
- Smooth snake movement and animations
- Two types of targets with different point values
- Open VS Code
- Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows)
- Type "Python: Select Interpreter"
- Choose the Python interpreter from your new venv folder
- For future reference, whenever you clone this project to a new location:
- Create a new virtual environment: python3 -m venv venv
- Activate it: source venv/bin/activate (Mac/Linux) or .\venv\Scripts\activate (Windows)
- Install requirements: pip3 install -r requirements.txt
- Run the game: python3 main.py
- Run the game:
python main.py
- Press SPACE to start the game
- Use arrow keys to control the snake's direction
- Collect targets to grow and score points
- Avoid hitting walls and the snake's own body
- Try to beat your high score!
- Arrow Up: Move snake up
- Arrow Down: Move snake down
- Arrow Left: Move snake left
- Arrow Right: Move snake right
- SPACE: Start game / Restart after game over
The game settings can be modified in the config.json file:
- Window size and FPS
- Snake speed and initial length
- Scoring system
- Level configurations
- And more!