Skip to content

ConnorHardin/Space-Invaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space Invaders

Space Invaders is a classic arcade-style shooting game implemented in Python. In this game, you control a spaceship at the bottom of the screen and must shoot down waves of descending aliens before they reach you. The game features:

  • Player-controlled spaceship
  • Alien enemies that move and shoot
  • Laser projectiles
  • Simple graphics using Python

How to Play

  • Use the arrow keys to move your spaceship left and right.
  • Press the spacebar to shoot lasers at the aliens.
  • Avoid enemy lasers and prevent aliens from reaching the bottom of the screen.
  • The game ends if your ship is hit or if the aliens reach the bottom.

Getting Started

Prerequisites

  • Python 3.x installed on your system
  • (Optional) pygame library for enhanced graphics and controls

Installation

  1. Clone or download this repository to your local machine.
  2. (Optional) Install pygame for better graphics:
    pip install pygame

Running the Game

  1. Open a terminal in the project directory.
  2. Run the main game file:
    python main.py

File Overview

  • main.py: Entry point for the game.
  • player.py: Handles player spaceship logic.
  • alien.py: Manages alien enemy behavior.
  • laser.py: Controls laser projectiles.
  • create_ship_image.py: Utility for creating ship images.
  • data/: Contains game assets (images, sounds, etc.).

Customization

  • You can modify the code to add new features, change graphics, or adjust difficulty.
  • Replace assets in the data/ folder to personalize the game.

License

This project is for educational and personal use. Feel free to modify and share it.

Credits

Inspired by the original Space Invaders arcade game.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages