This is first game developed by me using pygame.
- This is a pygame about earth and aliens.
- The player controls a spaceship using mouse or keyboard.
- Aliens are coming from opposite side. You can simply dodge them or hit them.
- You can download the game from release section or from here.
- After downloading unzip the downloaded folder i.e.
Alien Attack.zip
. - Now run
AlienAttack.py
file and game window will appear. Start playing and have fun.
- Download and install
Python
(2.7.13 or higher version) and set environment variables. Link to download Python2.7.14 is here. - Download any compiler or text editor to run python files. I use
Geany
. Link to downloadGeany
is here. - Set environment variables for
Geany
to run .py files. - Install
pygame
module for your version ofPython
. You can download latest version from here. - Make sure that
pygame
module is working for your current version ofPython
and your operating system.
- After completing all above steps open
AlienAttack.py
file with your text editor i.e.Geany
and Compile it. - After succesful compilation Run the file. Game window will appear and you can start playing.
- All the commands and instructions to play the game are given in README.txt file.
- Player is given 3 Lifes, 5 Superbullets and infinite spaceship bullets in the beginning of the game.
- Keyboard Controls are-
- SPACE - To hit an alien
- LEFT TAB - To use super bullet
- KEY A or LEFT ARROW - Move left
- KEY D or RIGHT ARROW - Move right
- KEY S or DOWN ARROW - Move Down
- KEY W or UP ARROW - Move Up
- KEY P - Pause the game
- ESCAPE - Exit the game
- Mouse Controls-
- Use the mouse to move the spaceship
- Difficulty Level-
- As the game progresses, difficulty level increases.
- Powerups-
- Heart Sign Powerup - To increase the no of lifes(Max lifes = 3).
- Energy Sign Powerup - To increase the no of superbullets(Max = 9)
- Aliens-
- There are three types of aliens coming
- Alien: Hit once to destroy. Score - 10 per alien destroyed.
- Alien1: Hit once to destroy. Score - 15 per alien destroyed.
- Super Alien: Hit thrice to destroy. Score - 30 per alien destroyed.
- Super Bullets-
- Max no of super bullets to store is 9.
- Super bullet doesn't get destroyed until it reaches the end of screen.
- It can destroy any type of alien with one hit.
- Also, player get more score if he/she destroys aliens with super bullets.
- Score for different aliens is as following-
Alien - Score of 20, Alien1 - Score of 30 and Super Alien - Score of 60
- Everyone is welcome to contribute on this project.
- First time PRs are also welcome. PRs will be accepted for Hacktoberfest.
- You can read from
CONTRIBUTING.md
file or click here to know what you can contribute to. - You can contribute by opening an Issue and also by solving a current issue if possible.
- Or you can contribute by suggesting new features, improvements or bug fixes.
- Fork the project to your GitHub account
- After forking enter the following commands in your terminal or git bash:
$ git clone https://github.com/vichitr/Alien-Attack
$ cd Alien-Attack
$ vi AlienAttack.py
- Kindly send Pull Requests with explanation for the changes you have done.
- This software is developed under Apache License 2.0