Skip to content

8BitButter/SpaceInvaders

Repository files navigation

Space Invaders Game

This is a simple Space Invaders game built using Pygame.

Getting Started

Prerequisites

Make sure you have Python and Pygame installed on your machine.

Installation

  1. Clone the repository or download the source code.
  2. Place your game assets (images and sounds) in the same directory as your Python script.

Running the Game

Run the game by executing the Python script:

python space_invaders.py

Gameplay

  • Use the left and right arrow keys to move your spaceship.
  • Press the spacebar to shoot bullets at the enemy spaceships.
  • Avoid enemy spaceships and shoot them down to score points.
  • The game ends when any enemy spaceship reaches the bottom of the screen.

Assets

Ensure you have the following assets in the same directory as your script:

  • background.png: Background image for the game screen.
  • background.wav: Background music for the game.
  • ufo.png: Icon for the game window.
  • player.png: Image for the player's spaceship.
  • enemy.png: Image for the enemy spaceships.
  • bullet.png: Image for the bullets fired by the player.
  • laser.wav: Sound effect for the player shooting bullets.
  • explosion.wav: Sound effect for enemy spaceship destruction.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages