Skip to content

WSm-77/python_games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 Python Games

This repository contains simple games built using the Pygame library in Python. These projects mark my first experience with UI-based applications and serve as practice for working with Python virtual environments and Object-Oriented Programming (OOP) paradigms.

🕹️ Games List

1️⃣ Space Invaders 1.0

Note

This is the first version of the Space Invaders game, created to explore the basics of the Pygame library. It introduces fundamental game mechanics such as player movement and collision detection.

Space Invaders 1.0 Gameplay

2️⃣ Space Invaders 2.0

Note

This is an improved adaptation of the Space Invaders game, designed with scalability in mind. The code follows OOP principles, making future expansions and modifications easier.

Space Invaders 2.0 Gameplay

🚀 Getting Started

🔧 Prerequisites

Ensure you have the following installed before running the games:

Python 3.x Pygame library

📥 Installation

Clone this repository:

git clone https://github.com/WSm-77/python_games.git
cd python_games

Set up a virtual environment (optional but recommended):

  • Linux/macOS:
python3 -m venv venv
source venv/bin/activate
  • Windows:
python -m venv venv
venv\Scripts\activate

Install dependencies:

pip install -r requirements.txt

Run a game:

python3 space_invader/space_invader.py  # For Space Invaders 1.0
python3 space_invader2/space_invader2.py  # For Space Invaders 2.0

📌 Features

✔️ Player movement and shooting mechanics

✔️ Enemy waves and collision detection

✔️ Score tracking

✔️ Structured OOP design

About

Contains games made with Pygame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages