asteroids-js

asteroids-js is an asteroids clone game made in JavaScript with the HTML5 canvas. The goal is to last as long as possible while destroying asteroids that fill the screen at an increasing rate.

The spaceship you control has a lot of drift which makes the game really difficult. My highest score was probably around 32.

This game was made for an officer application for my school's coding club in 2022 over the period of ~4 days.

Your browser does not support the HTML5 canvas, so all you get is this static pic of the game. :(

Controls

  • Left and right arrow keys - turning
  • Up arrow key - forward
  • Z - shoot
  • Tutorial

    This game came with an in-depth tutorial aimed to teach people how it works and how to make their own JavaScript games. Click here to view it!

    Links