All projects
After Hours Arcade – A Late-Night Arcade in the Browser
A late-night arcade in the browser with eleven games, each in its own themed cabinet. Every game pays out prize tickets into one shared ledger, and the tickets are spent in a first-person 3D prize hall.
Technology
Next.js · React · TypeScript · three.js · Web Audio API · Upstash Redis · Vitest
Case study
After Hours Arcade is a passion project I designed and built myself. Visitors walk along a row of cabinets with the arrow keys, tabs or a swipe. When they press START, a coin flips into the slot and the camera pushes through the screen into the game.
**The Games:**
- Nine games built into the arcade: Orbit Pulse (rhythm), DIP Switch (30 rule stages, ten of them using the mouse, keyboard, tabs and HUD), Tiny Kingdom (daily isometric tile strategy), Night Shift (tower stacking), Neon Pinball (one shot per arcade game), Gravity Hook (space fishing), Moonhop (endless climb), Temp! and Bottle Rocket
- Temp!: 60 four-second microgames across six workplaces, each with a boss, all driven by one hand and one button, and each one able to play itself
- Two games built as their own projects and housed in the arcade: Neon Underground, a 2D fighting game with a deterministic 60 Hz simulation, a CPU opponent and a 25-lesson tutorial, and Last Credit, a roguelike card battler inside a haunted cabinet
**Prize Tickets & the 3D Hall:**
- Every game pays prize tickets into one shared ledger; the two separate games post theirs to the arcade, which only accepts them from that game's own origin
- A first-person three.js prize hall with every machine, a prize counter and a shelf of won prizes, loaded only when the ticket slot is used
- A playable claw machine, and a secret back room behind a staff door with a code that is different for every player, hidden on stickers around the hall
**High Scores:**
- Shared today, this week and all-time boards for every game
- Signed, single-use run tokens, so a score can't arrive faster than it could be played, plus per-game limits, rate limits and an initials blocklist
- Upstash Redis storage; only initials, scores and a random player id are kept
**Engineering:**
- Next.js, React and TypeScript, with every sound effect and song synthesized live through the Web Audio API (no audio files)
- Vitest unit tests for the rules that are easy to get wrong, plus headless Chrome checks that walk the 3D hall, the score panel and every game's sound
Created by Amr Sabbagh, Full-Stack & Mobile Developer in Dubai.