Online Asteroids Game
Pilot your ship through an asteroid field in this classic arcade space shooter. Retro vector graphics with smooth keyboard controls.
Runs in your browser. No data leaves your device.
Frequently Asked Questions
How do I play Asteroids?
A requestAnimationFrame loop simulates Newtonian thrust physics with exponential friction on a canvas. The ship accumulates velocity when thrusting, and all objects wrap around screen edges using modulo arithmetic. Asteroids are rendered as randomized irregular polygons with 8-12 vertices at varying radii. Bullet-asteroid collisions use distance-vs-radius checks, splitting large asteroids into two smaller ones.
What are the controls?
Arrow keys to rotate and thrust your ship, spacebar to fire. The ship has momentum-based movement -- thrust pushes you in the direction you are facing, and you drift until you thrust in another direction.
How do I score points?
Shoot asteroids to break them into smaller pieces. Smaller asteroids are worth more points. Clear all asteroids to advance to the next wave with more and faster asteroids.
Does the screen wrap around?
Yes. Flying off one edge of the screen brings you back on the opposite side, just like the original arcade game. Bullets also wrap around the screen.