lonrun / snake-game

Snake Game is a customizable game built with Python, Pygame & pygame_gui. Features include adjustable window/snake size, speed, random food generation, and collision detection.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake Game

This is a Snake Game implemented using Python and Pygame & pygame_gui libraries. The game offers customization options such as window size, snake size, and snake speed, along with randomly generated food items and collision detection.

Features

  1. Customizable window size, snake size, and snake speed.
  2. Randomly generated food that increases the snake's length upon consumption.
  3. Detection of collisions with self and screen boundaries.
  4. Simple UI for setting up the game.
  5. Replayable game over screen.

Installation

To play the game, you will need Python 3.x installed on your system, along with the Pygame and pygame_gui libraries. Install them using the following commands:

pip install pygame
pip install pygame_gui

Usage

Run snake_game.py to start the game:

python snake_game.py

Demo (Unpolished Mockups)

Config Playing Replay

License

This project is licensed under the MIT License - see the LICENSE file for details.

Authors

  • (Lonrun) - Initial work
  • Master - Code assistance

Statistics

GitHub Repo Stats

Visitors

About

Snake Game is a customizable game built with Python, Pygame & pygame_gui. Features include adjustable window/snake size, speed, random food generation, and collision detection.


Languages

Language:Python 81.4%Language:Jupyter Notebook 18.6%