Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PaulJkr/space-invaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

21 Commits

Repository files navigation

๐Ÿ‘พ Space Invaders Clone โ€“ Python Edition ๐Ÿš€

Python License: MIT Pygame

A nostalgic Space Invaders-style arcade shooter built with Python and Pygame.
Dodge enemy fire, blast alien invaders, and rack up your high score in this fast-paced retro game!


โœจ Features

  • ๐Ÿ•น๏ธ Player Movement โ€“ Smooth left/right keyboard navigation
  • ๐Ÿ”ซ Shooting Mechanics โ€“ Fire lasers to destroy incoming enemies
  • ๐Ÿ‘พ Enemy Waves โ€“ Classic alien formation with animated movement and descent
  • ๐Ÿง  Basic AI โ€“ Enemies move in patterns and fire back
  • ๐Ÿ’ฏ Scoring System โ€“ Track your kills and top your high score
  • ๐Ÿ’ฅ Explosions & Effects โ€“ Sprite animations and sound effects on impact
  • ๐ŸŒŒ Background Music โ€“ Immersive arcade atmosphere
  • ๐ŸŒ— Pause/Restart โ€“ Game loop control for smooth gameplay

๐Ÿ› ๏ธ Tech Stack

  • Language: Python 3.10+
  • Library: Pygame 2.5+
  • Environment: Virtual Environment (venv)
  • Audio/Visual: Pygame Mixer for sounds and sprite handling

๐Ÿš€ Getting Started

Follow these steps to run the game locally:

1. Clone the Repository

git clone https://github.com/your-username/space-invaders.git
cd space-invaders

2. Create and Activate Virtual Environment

Create virtual environment

python -m venv venv

Activate (Windows)

venv\Scripts\activate

Activate (macOS/Linux)

source venv/bin/activate

3. Install Dependencies

pip install -r requirements.txt
pip install pygame

5. Run the Game

python main.py

๐ŸŽฎ Controls

Key Action
โ† / โ†’ Move left/right
SPACE Fire laser
ESC Pause / Resume
Q Quit game

๐Ÿ“œ License

This project is licensed under the MIT License โ€“ see the LICENSE file for details.
Built with ๐Ÿ’ป + ๐ŸŽจ + ๐ŸŽง by PaulJkr

About

Simple python game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle ใซใ‚ˆใฃใฆๅค‰ๆ›ใ•ใ‚ŒใŸใƒšใƒผใ‚ธ (->ใ‚ชใƒชใ‚ธใƒŠใƒซ) /