Skip to content

MHoseinJ/game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Python Snake Game (Pygame)

This is a simple Snake game created entirely with Python and Pygame, without any game engine. It's my first full game project, aimed at learning game development fundamentals using only raw code and logic.

📷 Screenshot

Here is a preview of the gameplay:

Snake Game Screenshot

📦 Requirements

🧪 Tested on Python 3.9 & 3.10 — newer versions like 3.12+ may not run on Windows 7.

🛠 Installation Guide

🔧 Step-by-step:

  1. Install Python 3.7 or later
    👉 Download from python.org

  2. Install Pygame
    Press Win + R, type cmd, hit enter, then run:

    pip install pygame
    
  3. Clone this Repository

    git clone https://github.com/JadidianMH/python_game.git
    cd python_game
    
  4. Run the game:

    python main.py

💪 Abilities of the game:

  • snake logic is completed.
  • taking screenshut by s key.
  • game can be stopped by ESC key.
  • for a better gameplay after game started game by default paused.
  • after a lose or entering game, snake speed is 5 then it changes to 10.
  • game has sounds.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages