This is a simple implementation of the classic Space Invaders game using the Python library, Pygame. The game features two spaceships, both of the spaceships are controlled by two players (yellow spaceship) and the other (red spaceship) as the enemy. The objective is to shoot down the enemy spaceship while avoiding its bullets and staying alive.
Use the W, A, S, D keys to move the yellow spaceship up, left, down, and right, respectively. Press LCTRL to fire bullets from the yellow spaceship. Use the arrow keys to move the red spaceship. Press RCTRL to fire bullets from the red spaceship.
Spaceship health is displayed on the screen. Bullets are limited for each spaceship (maximum of 2000 bullets). The game declares the winner when one of the spaceships runs out of health or reaches the bullet limit.
Clone or download this repository. Install Python and Pygame if you don't have them installed already. You can just run the main.py script to start the game. Also download the assets folder as it contains the background, sounds and images.
Have fun playing Space Invaders!