Home

Python - Alien Invasion Game

Technology: Python, Pygame, Visual Studio Code

This game features aliens falling from the top of the screen, a ship that moves
left and right when the keyboard arrows are pressed, and the ship fires bullets
everytime the space bar is pressed. The objective is to shoot down all the aliens
before they reach the bottom of the screen. After the user eliminates the aliens, a new
level is started and the aliens become faster each time. The amount of ships the user
has left is indicated in the top left of the screen. I made this game using the Pygame
development kit, which makes it much easier to manage game objects in Python. This
project is based off of a tutorial I followed in "Python Crash Course" by Eric Matthes.

Demo:

Project Files

alien_invasion.py: (The main class that is run)

ship.py:

alien.py:

bullet.py:

settings.py:

game_stats.py:

scoreboard.py:

button.py: