Giter VIP home page Giter VIP logo

gasteroids's Introduction

Gasteroids ๐Ÿ‘พ + โ˜„๏ธ

License: MIT Made Using: P5JS

Preamble

A mysterious horde of asteroids had been released upon Earth and unleashed terror among its inhabitants. You, an awarded space commander, had been chosen to protect Earth by destroying all the asteroids before they hit the planet!

Play here.

Game mechanics

  • Your misssion: Destroy as many asteroids as you can! If an asteroid goes past the bottom border of your screen you will lose a heart point! The number of heart points you start the game with are conditioned by the game's difficulty.
  • Moving: You can move your ship by moving the mouse along the x-axis.
  • Shooting: You can activate your laser gun by clicking on the screen or pressing the space bar. The number of "bullets" you can fire at a given time is conditioned by the game's difficulty.
  • Bonus mode: Some asteroids are Bonus Asteroids, when you manage to destroy one it will grant you additional bullets per shoot. You'll only have this upgrade for 10 seconds after destroying the bonus asteroid. Bonus asteroids, unlike regular asteroids, will be colored. The number of extra bullets depends on the game difficulty, check the table below for reference.
  • Exiting the game: You can press the [ESC] key at any time to exit the game.

Game modes

There's three game modes you can play: Easy, Medium, Hard. Each game mode changes certain aspects of the game, specifically:

  • The number of lives you start the game with
  • The number of lasers you can fire at a given time
  • The number of asteroids the game starts with
  • The number of asteroids that spawn each 50 frames of animation
  • The score multiplier

The way these values are set in each game mode are given in the table below:

Game mode # of initial lives # of bullets that can be fired at once # of initial asteroids # of generated asteroids Score multiplier # of additional bullets per bonus round
Easy 5 5 2 1 1 1
Medium 5 7 3 2 1.2 2
Hard 8 9 5 3 1.5 4

You can pick one of these modes at the "Game Over" screen.

Improvements

If you are interested, here's some items you could make to improve this game. Remember to follow the contributing guide.

  • Make the spaceship explode when an asteroid hit it
  • Give the spaceship some special super-power based on the score
  • Give the spaceship an extra-live based on the score
  • Give the spaceship some powerup by exploding an "special item" (v1.3.0)
  • Add a bossfight (A big asteroid that requires a set number of hits maybe?)

gasteroids's People

Contributors

devtony101 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jsan96 raturiar7

gasteroids's Issues

Give the spaceship some special super-power based on the score

There is already a "super power" that activates when ithe player destroys a special asteroid that grants the spaceship the ability to shoot several bullets at a time depending on the difficulty.

This new feature would create another "super power" but based on a certain score the player has to achieve. What superpower? I don't know, be creative! Here are some ideas to get you started:

  • Can it be recurring? Every 500pts for example?
  • Does it wear-off? After 5 seconds or after a certain number of uses?

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.