Skip to content

siriusberg/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Snake Game

This Snake Game is a simple implementation using the Pygame library. It allows players to control a snake and collect food to grow longer. The game continues until the snake collides with the screen boundaries or itself.

Requirements

To play and modify the Snake Game, you need to have the Pygame library installed.
You can install it using the following command: pip install pygame

Usage

  1. Run the Snake Game script using the following command: python Snake.py
  2. Use the arrow keys (or WASD) to control the snake's movement:
    • Left Arrow / A: Move left
    • Right Arrow / D: Move right
    • Up Arrow / W: Move up
    • Down Arrow / S: Move down
  3. The snake's goal is to eat the green food on the screen, which increases its length.
  4. The game ends if:
    • The snake collides with the screen boundaries.
    • The snake collides with itself.

Features

  • Snake movement controlled by arrow keys or WASD.
  • Food spawns randomly on the screen.
  • Score display showing the length of the snake.
  • Game over message and option to play again.

Future Enhancements

We're always looking to improve our Snake Game. Some potential enhancements include:

  • Adding levels with increasing difficulty.
  • Implementing different game modes.
  • Introducing special power-ups and obstacles.

Feel free to contribute to the project or suggest your own ideas!

Contributing

Contributions, bug reports, and feedback are welcome! If you'd like to contribute to the Snake Game project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Make your changes and test them.
  4. Commit your changes with descriptive commit messages.
  5. Push your changes to your fork.
  6. Create a pull request to the original repository.

About

It's a code for snake game (like snake xenzia)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages