I'll build a polished falling-block puzzle game with juicy feedback. Let me start by exploring the project structure.
Now I'll build the game. Starting with the core engine — a Columns-style falling-gem matcher with chain reactions.
Now the effects system (particles, shake, popups) and a WebAudio sound engine.
Now the canvas renderer with cached gem sprites, glow, and all the juice.
Now the high-score storage, gem icon component, and HUD.
Now the main game board component — canvas, game loop, keyboard + touch input.
Now the HUD with live-polled stats and the overlay screens.
Now the main App that wires everything together.
Now updating the HUD to support a compact mobile layout.
Now the global styles and page title.
Build succeeded. Now let me fix a few bugs I spotted — a collapse-animation direction error, a soft-drop teleport bug, and input polish.
Now polishing the input handling in GameBoard — throttled move sound and proper button auto-repeat delay.
Adding a seeded starting board so the first satisfying clear happens within seconds.
A final polish pass on the danger indicator and board framing.
Prism Drop is built and running — a neon cascade-matching puzzle game.
The core loop (fun in <10 seconds)
The board starts pre-seeded with three match-free rows, so your very first piece can trigger a clear. Columns of 3 gems fall; line up 3+ of a color horizontally, vertically, or diagonally to blast them. Gems above collapse into the gap, which can trigger cascading chains that multiply score exponentially (×1.75 per link).
Tight controls
- Keyboard:
←/→ move (with 145ms DAS + 42ms auto-repeat), ↑/X/Z cycle gem order, ↓ soft drop, Space slam, P/Esc pause, R instant restart, Enter start, M mute.
- Touch: drag horizontally to steer the column, tap to cycle, swipe down to slam — plus a dedicated 5-button pad with hold-to-repeat that only appears on coarse pointers.
- 150ms lock delay with reset-on-move so last-second slides feel forgiving.
Juice
Pooled particle system (900 shards/sparks/glow dots on lighter blend), expanding shockwave rings, hard-drop light trails, decaying screen shake + micro-rotation, screen flash, landing dust and squash-and-stretch, floating +points popups, big animated CHAIN ×N banners, a ghost-piece landing preview, and a danger band that heats up as your stack climbs.
Structure & performance
game/core.ts — pure engine (board, matching, cascades, scoring, levels)
game/fx.ts — preallocated effect pools (zero per-frame GC)
game/render.ts — canvas renderer with cached gem sprites (glow baked once per size, then drawImage)
game/audio.ts — asset-free WebAudio synth (chain clears pitch up the scale)
- HUD updates write directly to DOM refs inside one rAF loop, so React never re-renders during play
States & persistence
Start screen with control cards, pause (auto-pauses on tab blur), game-over with animated stat breakdown, and a local top-8 hall of fame with editable 3-letter tags, NEW RECORD badge, and a persisted mute preference.
Colorblind-friendly: every gem color carries a distinct symbol (circle, diamond, triangle, star, hex, cross).
Files built: src/game/core.ts, src/game/fx.ts, src/game/audio.ts, src/game/render.ts, src/game/scores.ts, src/components/GemIcon.tsx, src/components/GameBoard.tsx, src/components/Hud.tsx, src/components/Overlays.tsx, src/App.tsx, src/index.css, index.html