This is a classic Snake game implemented in Python using Canvas API
Check out the live demo of the project here.
The Snake game is a classic arcade game in which the player controls a snake that moves around the screen, eating food (represented by dots). As the snake consumes food, it grows longer. The game ends when the snake collides with the walls of the screen or with its own body.
- Classic Snake gameplay experience
- Simple controls using arrow keys
- Random generation of food on the screen
- Increasing difficulty as the snake grows longer
- Make sure you have Python installed. You can download it from Python's official website.
- Install the Pygame library by running the following command:
pip install pygame
- Clone this repository to your local machine using:
git clone https://github.com/yourusername/SnakeGame.git
- Navigate to the project directory.
- Run the following command to start the game:
python snake.py
- Use the arrow keys to control the snake:
- Up arrow: move the snake upwards
- Down arrow: move the snake downwards
- Left arrow: move the snake to the left
- Right arrow: move the snake to the right
- Try to eat as much food as possible without colliding with the walls or the snake's body.
- This game was created by Varda as a personal project.
- The Snake icon used in the game was created by Varda Hanwant.
This project is licensed under the MIT License - see the LICENSE file for details.