This is a realisation of Space Invaders Project from Eric Matthes' Python Crash Course, 2nd Edition, with some improvements.
-
git clone https://github.com/kseniaglivko/Alien_Invasion_Game.git
-
cd /path/to/main.py
-
python3 main.py
-
P or Right mouse button click Play Button to start game.
-
Right arrow, left arrow to move the ship.
-
Space to fire a bullet (five bullets are allowed on the screen at the same time).
-
Right Shift to fire a superbullet (one superbullet allowed on the screen).
-
Left Shift or Press mute/unmute buttons to turn the sound on and off.
-
Q or ESC to quit.
-
You may see the number of your lives left in the upper left corner of the screen.
-
In the upper left part of the screen there is also a mute button.
- Randomly generated starry sky as background.
- Added one superbullet* that can stay active even after destroing an alien.
- Explosion animation; scale of explosion depends on bullet/collision type.
- Sound effects.
- Mute and unmute buttons.
- Modified movement mechanics for aliens: row system changed to random spawn.
- Aliens shoot lazers.
- Spaceship health bar added. Health descrease as alien lazers collide with the spaceship.
*Amount of points, given for destroying an alien with a superbullet, is half as much as for destroying an alien with a simple bullet, due to its increased power.