Skip to content

A modern remake of the classic Space Invaders game built with Python and Pygame — complete with sound effects, multiple enemies, and a restart option using the Enter key.

Notifications You must be signed in to change notification settings

Cheth-code/Space_Invader_by_Pygame

Repository files navigation

🚀 Space Invader Game (Pygame)

A Python-based clone of the classic Space Invaders, developed using Pygame.
This version adds background music, sound effects, multiple enemies, collision detection, and a “Press ENTER to Play Again” feature after Game Over.


🕹️ Features

  • 🎨 Smooth 2D graphics using Pygame
  • 🎵 Background music and sound effects (laser, explosion)
  • 👾 Multiple enemies with randomized movement
  • 🚀 Player movement in both X and Y directions
  • 🔫 Bullet firing and collision detection
  • 💀 Game Over screen with score display
  • 🔁 Press Enter to restart the game instantly

🧠 Controls

Action Key
Move Left ← (Left Arrow)
Move Right → (Right Arrow)
Move Up ↑ (Up Arrow)
Move Down ↓ (Down Arrow)
Fire Bullet Spacebar
Restart After Game Over Enter (Return)

⚙️ How to Run

🧩 Step 1 — Clone the Repo

Inside your project folder (where main.py is), open the terminal and run:

git clone https://github.com/<your-username>/Space-Invader-Pygame.git

🧩 Step 2 — Go to the folder

cd Space-Invader-Pygame

🧩 Step 3 — Sync Environment

uv sync

🧩 Step 4 — Run the main.py file

uv run python main.py

OR

python -m main

Any changes made run

uv sync

About

A modern remake of the classic Space Invaders game built with Python and Pygame — complete with sound effects, multiple enemies, and a restart option using the Enter key.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages