Skip to content

Nikhilhaspe/Alien-Invasion-Game

Repository files navigation

Alien Invasion

Alien Invasion game written in Python using Pygame library.

js-standard-style

Installation

Download the Python 3 installer package from the official website and install it, if not installed previously.

Run the following in the terminal to install the Pygame library

pip install pygame

Running the application

Download the source code from the repository and run the file just as any other Python script (.py) file.

Place images from the assets folder as where you want and change path for their references in the code ship.py for ship bitmap image and same for alien bitmap image in alien.py file

python main.py

The speedup_scale variable can be changed with the values provided in the comment to set the difficulty level.

The rest of the code is properly commented and self explanatory. Tweaks can be made to change the play style or visuals of the game from the settings.py file.

Gameplay

gameplay.gif

Run exe Directly

Download Alien-Invasion-Game-exe folder and dont make any changes in that folder just run game main.exe file directly.

Play Game Now

Play game here

Objective

Your goal is simple you have to shoot ship fleets as much as you can before they collapse with the ship or ground.

Mechanics

As you progress with the game speed at which alien fleet ships will move towards the ground will increase.

Controls

For firing bullets use space bar and for controlling ship use arrow keys. Exit anytime from the game using Escape key.

Prerequisites

Acknowledgements

Happy Gaming! :)

About

Alien invasion game built using python with pygame library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages