Skip to content

jb49088/alien_invasion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alien_invasion

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.

Code Statistics

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

Project Structure

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

Screenshots

Screenshot 2025-10-01 153317 Screenshot 2025-10-01 153732

Artwork Attributions

About

A space invaders style game built with pygame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages