Space Invaders, flavored in Python. Written with pygame, as an interactive game for users to enjoy with their keyboard and mouse. Features health status, increased levels with corresponding difficulty, and a friendly user interface.
This program is written in python, for the user functionality and calculation aspect of the game. It utilizes a module (namely Pygame) in order to offer a GUI for the game, along with linking assets (such as images for a background, main character, or invaders) to the back end of the program.
Came here just to play the game? No problem. Here is how to get the game set up, with all of the game rules.
pip install pygame
in your terminal (run pip3 install pygame
if you have multiple versions of python on your computer, or if you have a Mac)python3 main.py
after navigating to the correct directory \downloads\space-invaders-master
.
Here are screenshots of some gameplay.
Here is an example of what the user is greeted with before starting the game.
Here is an example of the game initially being started, with lives on the left and the level on the right
Here is an example of enemy ships "invading" the home territory, also showcasing that health can be depleted if one of the bullets or space "invaders" come into contact with the ship
Here is an example of the levels increasing every time the user meets the threshold of defeating the required number of ships or maintaining their health for a certain amount of time (varying per level).
Here is an example of lives being lost if spaceships get past your avatar (which is based on your movement).
Here is an example of what the user experiences once they have run out of lives or health.