Skip to content

nopalpage/space_invaders

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SpaceShip Invaders

image

! Here's the code for the Space Invaders game in Python using the Pygame library. You can include this code in a README.md file to provide instructions on running the game.

# Space Invaders Game

This is a Python implementation of the classic Space Invaders game using the Pygame library.

## Requirements

- Python 3.x
- Pygame library

## Installation

1. Clone the repository:

   ```bash
   git clone https://github.com/your-username/space-invaders.git
  1. Change to the game directory:

    cd space-invaders
    ```
    
  2. Install the necessary dependencies:

    pip install -r requirements.txt
    ```
    

Usage

Run the following command to start the game:

python space_invaders.py

Use the following controls to play the game:

  • Left arrow key: Move spaceship to the left
  • Right arrow key: Move spaceship to the right
  • Spacebar: Shoot bullets

Gameplay

  • Control the spaceship and defeat waves of alien enemies.
  • Avoid getting hit by enemy projectiles and collisions with aliens.
  • Shoot bullets to destroy aliens and earn points.
  • The game is over when the player wins by destroying all the aliens or loses by getting hit by an enemy projectile.

Enjoy playing Space Invaders!

Email:

yossefsabry66@gmail.com

About

making a spaceship game using pygame module python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%