Skip to content

Thiararapeter/python-snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Snake Game

Description:

The Python Snake Game is a classic arcade game where the player controls a snake on the screen. The objective is to eat food items that appear on the screen, which causes the snake to grow longer. The game continues until the snake either runs into the screen border or collides with itself. The player earns points for each food item consumed.

Features:

  1. Snake Movement: Control the snake's movement using arrow keys.
  2. Food Items: Randomly generated food items appear on the screen for the snake to eat.
  3. Obstacles: As you score points, obstacles are introduced, adding complexity to the game.
  4. Lives: Start with three lives. Colliding with obstacles reduces lives, and running out of lives ends the game.
  5. Time Limit: The game has a time limit. If you fail to reach a certain score within the time limit, the game ends.
  6. Score Tracking: Your score is displayed on the screen, along with the highest score achieved.
  7. Pause Feature: Pause and resume the game using the 'P' key.
  8. Game Over Screen: When the game ends, a "Game Over" screen is displayed, allowing you to restart.

Controls:

  • Arrow keys: Control the snake's direction.
  • Enter key: Restart the game after Game Over.
  • P key: Pause and resume the game.

GitHub Repository:

Link to Python Snake Game Repository

How to Play:

  1. Clone the repository to your local machine.
  2. Ensure you have Python and Pygame installed.
  3. Run the game by executing the Python script.
  4. Use arrow keys to control the snake, eat food, and avoid obstacles.
  5. Try to achieve the highest score before running out of lives or time.

Screenshots:

Game Screenshot

Have fun playing the Python Snake Game!


Copyright GNU v2 and above. Created by Thiarara

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages