Giter VIP home page Giter VIP logo

space-invader-game's Introduction

Space Invader Game in Pygame

Size GitHub Python

Made with Python

Introduction

Welcome to Space Invaders, a classic arcade game implemented using Pygame! In this game, you play as a spaceship tasked with defending the earth from waves of alien invaders.

Gameplay

The gameplay consists of three levels. In each level, you will be faced with a wave of alien invaders that you must defeat in order to progress to the next level. You can move your spaceship left and right using the left and right arrow keys, and shoot at the aliens using the space bar.

After completing level 2, the game will randomly throw missiles at you. You can shoot these missiles using the space bar, and shooting three bullets at a missile will give you a score bonus of 50 points.

As you progress through the levels, the aliens will move faster and become more numerous. If an alien touches the bottom of the screen or enters the player area, the game is over. However, you have three lives, so if you collide with an alien, your life will decrease by 1. The enemies do not shoot at you.

The game is won when you successfully shoot down all of the aliens.

Scoring

Shooting an alien gives you a score of 10 points. In addition, shooting three bullets at a missile will give you a score bonus of 50 points.

Controls

Use the left and right arrow keys to move the spaceship left and right. Press the space bar to shoot at the aliens or missiles. Installation and Running the game To run the game, you will need to have Pygame and NumPy installed. You can install these dependencies using pip by running the following commands:

pip install pygame
pip install numpy

Once the dependencies are installed, you can clone the repository and run the game by following these steps:

git clone https://github.com/PrathameshDhande22/Space-Invader-Game.git
cd Space-Invader-Game
python App.py

Output

Click Here ๐Ÿ‘ˆ to See the Output

Credits

The images used in the game are taken from:

The sound effects used in the game are taken from Pixabay.

Conclusion

Thank you for playing Space Invaders! We hope you had fun defending the earth from the alien invasion.

Author : Prathamesh Dhande

space-invader-game's People

Contributors

prathameshdhande22 avatar

Stargazers

 avatar

Watchers

 avatar  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.