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.
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.
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.
Ensure you have the following installed before running the games:
Python 3.x Pygame library
Clone this repository:
git clone https://github.com/WSm-77/python_games.git
cd python_gamesSet up a virtual environment (optional but recommended):
- Linux/macOS:
python3 -m venv venv
source venv/bin/activate- Windows:
python -m venv venv
venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtRun a game:
python3 space_invader/space_invader.py # For Space Invaders 1.0
python3 space_invader2/space_invader2.py # For Space Invaders 2.0✔️ Player movement and shooting mechanics
✔️ Enemy waves and collision detection
✔️ Score tracking
✔️ Structured OOP design

