Back to portfolio
game2025

Asteroids

Classic arcade space shooter rebuilt from scratch with HTML5 Canvas and vanilla JavaScript

HTML5 CanvasJavaScriptCSS
Personal Project
2025
Asteroids

Overview

A faithful recreation of the 1979 Atari classic, built entirely by Robby as a fun side project. The game features the iconic vector-style graphics with a phosphor green CRT aesthetic, complete with ship physics, asteroid splitting, wave progression, and a high score system. Pure vanilla JavaScript — no frameworks, no libraries, just code and canvas.

Challenge

Recreating the feel of a beloved arcade classic means nailing the details: the floaty ship inertia, the way asteroids split into smaller pieces, the screen-wrap mechanic, and that unmistakable vector glow. It had to feel authentic while running smoothly in a modern browser.

Solution

Built with HTML5 Canvas and raw JavaScript — no game engine, no dependencies. The physics system handles momentum, rotation, and collision detection with polygon-based hitboxes. Asteroids fragment into smaller, faster pieces when shot. The CRT-style green-on-black aesthetic with a subtle scanline effect pays homage to the original arcade cabinet.

Results

A satisfying arcade experience that captures the tension and flow of the original. Wave progression keeps the challenge escalating, and the high score tracker adds replayability. A fun proof that sometimes the best projects are the ones you build just for the joy of it.

Key Features

01Authentic vector-style ship physics with momentum and rotation
02Asteroid splitting mechanics across multiple size tiers
03Wave progression system with increasing difficulty
04Screen-wrap for ship, bullets, and asteroids
05CRT phosphor green aesthetic with retro styling
06Score tracking with high score persistence
07Lives system with ship respawn