Code Monkey home page Code Monkey logo

class-invaders's People

Contributors

ripter avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

class-invaders's Issues

Add Score

Killing a mob should give you points.
Points should be shown at the top of the screen.

Player has 3 lives

The player should start the game with 3 lives.
If the player is shot:

  • They should lose a life.
  • They should disappear from the screen for half a second.
  • They should be temporarily invincible when they reappear.

When the player loses all lives the game is over.

Create bunkers

Bunkers do not move.
They are made up of 6 pieces (3x2) that can be destroyed by bullets.
Each piece can take a random number of shots between 1 and 3.
There should be three stages of damage, that corresponds to the number of shots it can take.

Several bunkers should be placed between the player and the invaders at the start of the game.

Add UFO

"The UFO (aka Flying Saucer or Mystery Ship) is a ship that will randomly pop up. If a player hits it, they will receive a random number of either 50, 100, or 150 points. However, if they perform the secret of firing 22 shots, then hitting it on the 23rd shot, then on the 15th shot thereafter, they will receive 300 points every time."

It should

  • appear on a random side of the screen.
  • fly to the opposite side of the screen.
  • chance of shooting at the player.
  • award 50, 100, or 150 points (picked randomly.)

Extra Credit:

  • add the secret

Invader bullet

Looks different than the player's bullet.
Damages the player/bunker on hit.

High Score

Let the user enter their initials with their score on the end screen.
Show a list of high scores with initials.

Extra Credit:

  • Save the high score between page refreshes.
  • Show other people's high score.

Invaders should fire back

Invaders should randomly fire at the player.
If the player is hit, he loses a life.
If a bunker is hit, the piece it touched should take damage.

End Screen

Shown when the player loses all lives.
Displays a high score.
Player can press a key to restart the game.

Start Screen

When the page first loads, it should show a start screen.
pressing a key should start the game.

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.