Space-Invader is a classic arcade-style game where players control a spaceship to defend against waves of alien invaders. The objective is to shoot down enemies and survive as long as possible while achieving a high score.
- Player-controlled spaceship
- Multiple enemies with movement patterns
- Shooting mechanics with player bullets
- Sound effects for actions such as shooting and explosions
- Score tracking
-
Clone the repository:
git clone https://github.com/drahulsingh/Space-Invader.git cd Space-Invader
-
Install the required dependencies:
pip install pygame
-
Run the main game script:
python main.py
-
Use the arrow keys to move your spaceship left and right.
-
Press the space bar to shoot bullets at the enemies.
-
Avoid enemy bullets and try to shoot down all enemies to advance to the next level.
-
The game ends when you lose all your lives.
main.py
: The main game script that contains the game logic and runs the game.background.png
: The background image for the game.player.png
: The image representing the player's spaceship.enemy.png
: The image representing the enemy spaceships.bullet.png
: The image for the bullets shot by the player's spaceship.ufo.png
: The image for special UFO enemies.background.wav
: Background music for the game.laser.wav
: Sound effect for shooting bullets.explosion.wav
: Sound effect for explosions.
- Pygame - The library used to develop the game.
- Images and sounds were sourced from various free resources.
- Feel free to contribute to this project by opening issues or submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
For any inquiries or issues, please contact drahulsingh.