Alien Invasion game written in Python using Pygame library.
Download the Python 3 installer package from the official website and install it, if not installed previously.
Run the following in the terminal to install the Pygame library
pip install pygame
Download the source code from the repository and run the file just as any other Python script (.py) file.
Place images from the assets folder as where you want and change path for their references in the code ship.py for ship bitmap image and same for alien bitmap image in alien.py file
python main.py
The speedup_scale
variable can be changed with the values provided in the comment to set the difficulty level.
The rest of the code is properly commented and self explanatory. Tweaks can be made to change the play style or visuals of the game from the settings.py file.
Download Alien-Invasion-Game-exe folder and dont make any changes in that folder just run game main.exe file directly.
Play game here
Your goal is simple you have to shoot ship fleets as much as you can before they collapse with the ship or ground.
As you progress with the game speed at which alien fleet ships will move towards the ground will increase.
For firing bullets use space bar and for controlling ship use arrow
keys.
Exit anytime from the game using Escape
key.
Happy Gaming! :)