In this game we are basially piloting a spaceship and our objective is to destroy the approaching alien fleet before they reach us.
1- run it as a python program the main file is 'alien_invasion_game.py' so do "python alien_invasion_game.py".
2- You get an option to "play" game.
The above screen would apear once you run the program click on play to start.
The Number in "Green" represents High-Score.
The Number in "Red" represents Current-Score.
The Number in "Blue" represents Current-level.
The Ship in the Middle Bottom is our_ship/player of the game.
The Fleet Moves Left and right in the same horizontal level and then come closer by some amount in the vertical level.
Our Player can move in the left/right direction and can shoot bullets.
- LEFT = move_left
- RIGHT = move_right
- SPACEBAR = shoot_bullet
- Q = quit_game
The Followings are the criteria by which game can end.
- You deliberately quit the game by pressing Q.
- Any one of Alien-ships and Our-Ship collide.
- Any one of Alien-ships reaches the bottom of the screen.
- Close the terminal through which you ran the command.
As we destroy all the ships of the alien fleet a new fleet arrives and this one is a stronger one as compared to earlier one as the speed in which they were travelling horizontally in the same vertical height becomes double as compared to the previous level.
So does the vertical speed doubles
But our Ship gets modified level by level too.. Its horizontal speed doubles after every level and also its bullet speed becomes two times of what it was earlier.