← Back to all games

HTML5 Asteroids

A pure-JavaScript remake of the Atari classic, with vector-line graphics and real inertia physics.

Arrow keys to rotate and thrust, space to shoot. Open in new tab ↗

Source

dmcinnes/HTML5-Asteroids

License

MIT

Stars

★ 355

Size

~10-200KB

Tech

原生JS · Canvas

Deploy

Static

How to play

Thrust, rotate and fire to shatter asteroids into smaller and smaller fragments. Momentum carries you the whole time — one careless drift ends the run.

Arrow keys to rotate and thrust, space to shoot.

Integration notes

The inertia-heavy shooting feel is genuinely good and outlasts your average shooter. The repo has no ready-made demo — just clone and deploy statically, a one-minute job.

#原生js#canvas#touch

FAQ

Is HTML5 Asteroids free to play?

Yes. HTML5 Asteroids is completely free, runs in your browser, and needs no install or account.

Is HTML5 Asteroids open source?

Yes. It hosts the original open-source code by dmcinnes, released under MIT. Source: https://github.com/dmcinnes/HTML5-Asteroids

How do you play HTML5 Asteroids?

Arrow keys to rotate and thrust, space to shoot.

More like this