This is a simple Space Invaders game built using Pygame.
Make sure you have Python and Pygame installed on your machine.
- Python: Download Python
- Pygame: Install using pip
pip install pygame
- Clone the repository or download the source code.
- Place your game assets (images and sounds) in the same directory as your Python script.
Run the game by executing the Python script:
python space_invaders.py
- Use the left and right arrow keys to move your spaceship.
- Press the spacebar to shoot bullets at the enemy spaceships.
- Avoid enemy spaceships and shoot them down to score points.
- The game ends when any enemy spaceship reaches the bottom of the screen.
Ensure you have the following assets in the same directory as your script:
background.png
: Background image for the game screen.background.wav
: Background music for the game.ufo.png
: Icon for the game window.player.png
: Image for the player's spaceship.enemy.png
: Image for the enemy spaceships.bullet.png
: Image for the bullets fired by the player.laser.wav
: Sound effect for the player shooting bullets.explosion.wav
: Sound effect for enemy spaceship destruction.