Giter VIP home page Giter VIP logo

drahulsingh / space-invader Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 4.72 MB

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

Home Page: https://github.com/drahulsingh/Space-Invader

License: MIT License

Python 100.00%
game game-2d game-development pygame pygame-2d-engine pygame-application pygame-games python python-3 python3

space-invader's Introduction

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.

space-invader's People

Contributors

drahulsingh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.