Skip to content

vichitr/Alien-Attack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alien-Attack

This is first game developed by me using pygame.

PRs Welcome

  • 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.

How to Download and Play

Downloading the game

  • 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.

Prerequisites to run the game

  • 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 download Geany is here.
  • Set environment variables for Geany to run .py files.
  • Install pygame module for your version of Python. You can download latest version from here.
  • Make sure that pygame module is working for your current version of Python and your operating system.

Playing the game

  • 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.

PS: Put all the files of zip folder in the same directory. Otherwise the game won't run.

Instructions and Commands to play the game

  1. Player is given 3 Lifes, 5 Superbullets and infinite spaceship bullets in the beginning of the game.
  2. 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
  1. Mouse Controls-
  • Use the mouse to move the spaceship
  1. Difficulty Level-
  • As the game progresses, difficulty level increases.
  1. Powerups-
  • Heart Sign Powerup - To increase the no of lifes(Max lifes = 3).
  • Energy Sign Powerup - To increase the no of superbullets(Max = 9)
  1. 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.
  1. 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

Contribution

  • 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.

License

About

My first game developed using pygame.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages