A modern twist on the classic Snake game, implemented in Python using Pygame.
- Smooth, grid-based gameplay
- Dynamic difficulty: speed increases as you collect food
- Special "big food" items appear periodically for bonus points
- Power-up mode: temporarily invincible to obstacles
- Obstacles that change with each level
- Mouse control option for intuitive gameplay
- Retro-style pixelated font (when available)
- High score tracking
- Game over screen with score and level display
- Python 3.x
- Pygame
- Clone this repository:
git clone https://github.com/yourusername/snake-game.git
- Navigate to the game directory:
cd snake-game
- Install the required packages:
pip install pygame
- Run the game:
python snake.py
- Control the snake using arrow keys or mouse movement
- Eat food to grow and increase your score
- Avoid obstacles and running into yourself
- Collect big food items for bonus points and temporary invincibility
- Try to achieve the highest score possible!
- Arrow Keys: Change snake direction
- Mouse Movement: Alternate control method (can be switched during gameplay)
- Space Bar: Restart game after Game Over
Game-Play.mp4
You can easily customize various aspects of the game by modifying the constants at the beginning of the snake.py
file:
- Screen dimensions
- Grid size
- Colors
- Game speed
- Power-up duration
- Big food frequency
Contributions are welcome! Please feel free to submit a Pull Request.