Skip to content

Space-Invader is a classic game where players control a spaceship, shooting down alien invaders to survive and achieve a high score.

License

Notifications You must be signed in to change notification settings

drahulsingh/Space-Invader

Repository files navigation

Space-Invader

ViewCount

Space-Invader

Description

Space-Invader is a classic arcade-style game where players control a spaceship to defend against waves of alien invaders. The objective is to shoot down enemies and survive as long as possible while achieving a high score.

Features

  • Player-controlled spaceship
  • Multiple enemies with movement patterns
  • Shooting mechanics with player bullets
  • Sound effects for actions such as shooting and explosions
  • Score tracking

Screenshots

Screenshot

Installation

  1. Clone the repository:

    git clone https://github.com/drahulsingh/Space-Invader.git
    cd Space-Invader
  2. Install the required dependencies:

    pip install pygame

How to Play

  1. Run the main game script:

    python main.py
  2. Use the arrow keys to move your spaceship left and right.

  3. Press the space bar to shoot bullets at the enemies.

  4. Avoid enemy bullets and try to shoot down all enemies to advance to the next level.

  5. The game ends when you lose all your lives.

Files

  • main.py: The main game script that contains the game logic and runs the game.
  • background.png: The background image for the game.
  • player.png: The image representing the player's spaceship.
  • enemy.png: The image representing the enemy spaceships.
  • bullet.png: The image for the bullets shot by the player's spaceship.
  • ufo.png: The image for special UFO enemies.
  • background.wav: Background music for the game.
  • laser.wav: Sound effect for shooting bullets.
  • explosion.wav: Sound effect for explosions.

Acknowledgements

  • Pygame - The library used to develop the game.
  • Images and sounds were sourced from various free resources.

Contributing

  • Feel free to contribute to this project by opening issues or submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any inquiries or issues, please contact drahulsingh.