In alien_invasion, the player controls a spaceship that appears at the bottom center of the screen. The player can move the ship right and left using a and d and shoot lasers using the spacebar. When the game begins, a fleet of UFO's fills the sky and moves across and down the screen. The player shoots and destroys the UFO's. If the player destroys all the UFO's, a new fleet appears that moves faster than the previous fleet. If any UFO 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.
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
Python 11 187 164 622
Markdown 1 13 4 51
JSON 1 0 0 1
Text 1 0 0 1
-------------------------------------------------------------------------------
SUM: 14 200 168 675
-------------------------------------------------------------------------------
alien_invasion
├── data
│ └── high_score.json
├── images
│ ├── ship.png
│ └── ufo.png
├── README.md
├── requirements.txt
└── src
├── alien_invasion.py
├── button.py
├── game_stats.py
├── hud.py
├── menu.py
├── settings.py
├── ship_lasers.py
├── ship.py
├── star.py
├── ufo_laser.py
└── ufo.py
4 directories, 16 files
- Ship by Skorpio
- UFO by Carlos Alface