Skip to content

ronaldo-28/alien_invasion

Repository files navigation

Welcome to 👽 Alien Invasion Game 👋

Alien Invasion is a simple game built on Python 3.10 using Pygame. In Alien Invasion, the player controls a rocket 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 utilizing the spacebar. The player’s goal is to destroy a fleet of aliens that moves across and down the screen. The game becomes more challenging as the player progresses to new levels with faster aliens. The game ends when the player loses three ships or an alien reaches the bottom of the screen. The player can also press P to start the game and see their high score, which is saved in a file. The game features sound effects for firing bullets and hitting aliens. The game also has an AI mode that lets the computer control the ship and fire bullets automatically. The AI mode can change strategies mid-level and target specific aliens with improved accuracy.

pic_0

pic_1

pic_2

pic_3

pic_4

Install

Download pygame using the following command in the terminal

pip install pygame

Usage

cd into the folder where you have downloaded the Repo. And run the below command.

python alien_invasion.py

For Mac and Linux, run this command

python3 alien_invasion.py

To run the AI player

python ai_player.py

Author

👤 ronaldo-28

Show your support

Give a ⭐️ if this project helped you!

About

Alien Invasion game created using Python & Pygame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages