Skip to content

This is a classic Space Invaders game implemented using Python and the Pygame library.

Notifications You must be signed in to change notification settings

HamzaVextor/Space-Invaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space Invaders Game

This is a simple implementation of the classic Space Invaders game using the Python library, Pygame. The game features two spaceships, both of the spaceships are controlled by two players (yellow spaceship) and the other (red spaceship) as the enemy. The objective is to shoot down the enemy spaceship while avoiding its bullets and staying alive.

How to Play

Use the W, A, S, D keys to move the yellow spaceship up, left, down, and right, respectively. Press LCTRL to fire bullets from the yellow spaceship. Use the arrow keys to move the red spaceship. Press RCTRL to fire bullets from the red spaceship.

Game Features

Spaceship health is displayed on the screen. Bullets are limited for each spaceship (maximum of 2000 bullets). The game declares the winner when one of the spaceships runs out of health or reaches the bullet limit.

Installation and Usage

Clone or download this repository. Install Python and Pygame if you don't have them installed already. You can just run the main.py script to start the game. Also download the assets folder as it contains the background, sounds and images.

Have fun playing Space Invaders!

About

This is a classic Space Invaders game implemented using Python and the Pygame library.

Resources

Stars

Watchers

Forks

Languages