Alien Invasion game build in pygame. The game was addapted and modified from PYTHON CRASH COURSE by ERIC MATTHES.
-
-
-
-
-
Multi-level game. After each level speed of the game is increasing
-
A high score is always recorded after each game, so when you play next time you can still see your high score
-
-
-
Implement a button to show the instruction for the game
-
Implement a button to mute the sound of the game
-
Implement a button for the high score board for the top five high scores
-
Implement a functionality for pause/unpause the game
-
Implement a button to quit the game
-
Implement the functionality for alien ships to fire after few levels
-
Add life up after some levels
-
-
-
-
-
- To add some design to the game and make it more personal I have added a background image to game that also reflects the game's purpose right from the start
-
- Added sound effects to give feedback to players, and to provide an entertaining experience
-
-
-
-
In order to run this project locally you should have installed these 3 requirements on your machine:
-
VS Code - IDE or your personal preference
-
Pyhton3 - to run the application on your local machine
-
PIP for installation of tools needed in this project.
Optional: you can install Git.
- At the top of the repository click on Code and click on download zip and extract the zip file to your chosen folder or keep the same name.
Optional: if you have Git install on your machine you can type
git clone https://github.com/constantinadrian/alien_invasion
or to clone the repository into a different name on the folder you can run
git clone https://github.com/constantinadrian/alien_invasion folder_name
more info about cloning with git here.
- Install pygame library
Windows installation
py -m pip install -U pygame --user
Mac installation
python3 -m pip install -U pygame --user
Debian/Ubuntu/Mint
sudo apt-get install python3-pygame
Fedora/Red hat
sudo yum install python3-pygame
OpenSUSE
sudo zypper install python3-pygame
Arch/Manjaro
sudo pamac install python-pygame
more info about pygame installation here.
-
Navigate to the folder where project is
-
To run the project run
python alien_invasion.py
-
-
-
-
-
Addapted and modified from PYTHON CRASH COURSE by ERIC MATTHES
-
-
-
- This project is for educational purposes only.