Giter Site home page Giter Site logo

imisi99 / asteroid-pygame Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 68.27 MB

This is a basic space shooting game built using pygame and pyinstaller . It is an endless game which it's main objective is for the player to have fun. The game has a lot of features that are engaging and fun

Python 100.00%

asteroid-pygame's Introduction

Asteroid-Pygame

This is a basic space shooting game built using pygame and pyinstaller.
It is an endless game which it's main objective is for the player to have fun.
The project has two forms which are pygame only and pygame with class
There is very little difference between the two projects, it's just that the one with classes is more efficient and some certain methods were allowed for better game experience which isn't quite noticeable.
What the game entails:

  • The game can be played by using a mouse or touchpad only
  • Players can move the spaceship anywhere on the screen to avoid the incoming meteors
  • The game is played by moving around with the aid of a mouse and trying to shoot meteors while avoiding them
  • There is a total of 5 life for a player in the beginning of the game but this can go up or down:
    • If the spaceship comes in contact with a meteor there is a single life deduction
    • If a meteor successfully passes the spaceship and goes through the bottom of the screen there is a single life deduction
    • If a bomb comes in contact with the spaceship then there is a double life deduction
    • If a player manages to come in contact with a single heart that comes randomly then a life is added to the player
  • Throughout the event of the game the player can have a max of five life only

  • If a player manages to come in contact with a fuel tank then for a finite amount of time there is an automated rapid laser shooting
  • Once a plyer life is below zero then it is game-over for the player and the player can do the following:
    • Press the p button to restart the game
    • Press the q button to quit the game

The game has been made into an executable file using pyinstaller therefore there is no need for any package installation to run the game, It can be downloaded here without class or with class.
Here is the installation Process:

  • You can clone any of the project
  • Once you have cloned the project navigate to the asteroid folder and run the game by clicking on the executable file asteroid.exe
  • Alternatively you can create a shortcut of the executable file and place it on your desktop for easy access

To run the game on your terminal however you would have to clone the project and navigate to the project you want to run and run this command on your terminal:

  •  pip intall requirements.txt
    
  •  python main.py
    

It was fun creating the game and I hope you enjoy it if you did, you can star the repository

asteroid-pygame's People

Contributors

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