In Alien Invaders, the player controls a ship that appears at the bottom center of the screen. The player can move the ship right and left using the arrow keys and shoot bullets using the spacebar. When the game begins, a fleet of aliens fills the sky and moves across and down the screen. The player shoots and destroys the aliens. If the player shoots all the aliens, a new fleet appears that moves faster than the previous fleet. If any alien hits the player’s ship or reaches the bottom of the screen, the player loses a ship. If the player loses three ships, the game ends.
- The game has three main elements: aliens, ship & bullets. The game starts with aliens arranged in rows starting from the top of the screen and the ship centered at the bottom-center of the screen.
- The ship is allowed to move horizontally only using the leftwards arrow and rightwards arrow keys on the keyboard, the bullets are fired when the space-bar is pressed. Players can only have 5 bullets present on each screen.
- The player starts the game with three ships if an alien collides with the ship, the player loses one ship.
- If the player loses all ships the game ends
- Once the player kills all the aliens present at the screen, the player moves on to the next level.
- The game starts with the aliens moving slowly but with each new level, the aliens' speed increase.
- The top left of the screen displays how many ships you have left, the top center shows the best score and the top left shows your current score and the level you're on.
- Killing eacn alien earns you points and with the level's difficulty increasing, the points you earn for each alien you kill increases as well.
- Make sure to download all files into the same directry
- Open your IDE
- run alien_invaders.py
- Enjoy the game