Skip to content

Repository files navigation

Space Invaders - Javascript clone

Cover image

This is a Javascript clone of the classic arcade shot'em up by Taito. The code is based on Youtuber, Coding With Adam's video tutorial.

Improvements made on the tutorial's code:

  • Player starting position centered

  • Player bullets are removed when completely of the screen

  • Enemy bullets are fired from the bottom, rather than the top, of the enemy

  • Enemies trigger GameOver when reaching player base line, rather than collision

  • Infinite play (game reset when Space down on GameOver screen)

  • UI with score and Hi-Score tracking (10 points for every enemy death, score resets if lose)

  • Lives tracking in UI (1UP every 1000 points, lose at 0 lives)

  • Enemy shoot sound

  • Enemy waves accelerate at each win, resets when lose, stays constant if enemies reach base.

  • MotherShips spawn at random time and on random side; they fire at random times and are removed once they've crossed the screnn; they give random points, tenfold of grunts when hit

  • Varying enemy points acording to color

  • Added Pause and Escape

In developement

  • UFO sound and death sound for motherShipController.js; classic moving sound for enemies
  • ennemy wave acceleration as their number shortens ? gameplays in modern/classic modes
  • upgrade.js and upgradeController.js for upgrades droped at MotherShips death

Try it here

About

Space Invaders Javascript Clone

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages