Asteroids — Canvas Shooter

Open the game full-screen

About this game

Newtonian space shooting on an HTML5 canvas: your ship keeps every bit of momentum you give it, and big asteroids split into faster, smaller ones when shot. Mastering drift is the difference between hunting rocks and becoming debris.

How to play

Rotate with the left and right arrows, thrust with the up arrow, and fire with the space bar. Break asteroids into smaller pieces and clear them all — and mind your momentum.

Advertisement
Source & license
Open-source work by dmcinnes. Source code: https://github.com/dmcinnes/HTML5-Asteroids
License: MIT. The original license text ships with the game: LICENSE

You may also like

Retro Space

Retro Space Invaders

Rows of invaders march sideways and descend, step by step, while you slide along the bottom and pick them off. This compact remake keeps the original pressure curve: the fewer invaders remain, the faster the rest come at you.

Retro Astero

Retro Asteroids

A minimalist asteroids tribute from the retro collection: wireframe rocks, a lone ship, and physics that do not forgive panic. A good first asteroids game — and a reminder of how much tension a few dozen lines of code can hold.

Radius Raid

Radius Raid — Arena Shooter

A twin-stick arena shooter built for the js13k competition, where the entire game had to fit in 13 kilobytes. Waves of geometric enemies swarm your ship; the screen-filling chaos it produces is wildly out of proportion to its tiny size.