https://github.com/tom474/snake_game
A classic Snake game in Python using Pygame.
https://github.com/tom474/snake_game
game-development pygame python
Last synced: 12 months ago
JSON representation
A classic Snake game in Python using Pygame.
- Host: GitHub
- URL: https://github.com/tom474/snake_game
- Owner: tom474
- Created: 2024-06-10T09:08:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-28T15:34:22.000Z (over 1 year ago)
- Last Synced: 2025-03-04T09:19:44.708Z (over 1 year ago)
- Topics: game-development, pygame, python
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snake Game
A classic Snake game built using Python and Pygame. Players control the snake to collect apples while avoiding collisions with the edges and its own body. The game tracks scores and allows players to restart after losing.
## Tech Stack
- Python
- Pygame
## Features
- **Game Mechanics**:
- Move the snake in four directions (up, down, left, right).
- Collect apples to increase the snake's length and score.
- Collision detection with walls and the snake's own body.
- Game over screen with the final score and restart option.
- **User Interface**:
- Grid-based layout for clear movement visualization.
- Score display to track progress.
- Simple controls using arrow keys and spacebar to restart.
- **Gameplay Elements**:
- Dynamic apple placement with random positioning.
- Increasing difficulty as the snake grows.
- Smooth movement with frame rate control.