Skip to content

README.md

14 lines · 1.4 KB · Markdown

Asteroids

A classic vector Asteroids game, playable by anyone at https://asteroids.kentcdodds.com.

  • Keyboard: ←/→ or A/D rotate, ↑ or W thrust, Space fire. Space/Enter starts or restarts.
  • Touch: floating joystick on the left (turn toward the stick; push further for more thrust) and a big FIRE button on the right; steer and fire together. Tap to start.
  • Big asteroids split into medium, then small. Each level adds a rock and speeds them up.
  • 3 lives, with a short blinking invulnerability after respawn.
  • Extra life every 10,000 points.
  • Audio: synthesized sound effects and a looping chiptune, all made in the browser with the Web Audio API (no audio files). Toggle with the SOUND / MUSIC buttons (top right) or S / M. Choices are saved in localStorage (kody-asteroids-sound, kody-asteroids-music). Audio starts after your first key press or tap.
  • High score is saved in this browser's localStorage (kody-asteroids-hi).
  • Install it: an INSTALL button appears where the browser supports installing (Chrome, Edge, Android). On iPhone/iPad use Share → Add to Home Screen. Once installed or visited, it plays offline.
  • Updates: a new version downloads in the background and an UPDATE AVAILABLE message appears; tap UPDATE to switch, or it takes over next launch. The ABOUT page shows the current build and has a CHECK FOR UPDATES button.
  • Sharing: links show a 1200×630 preview image (og:image) of the game.