Build a polished, playable browser game: reimagine any obscure or ancient game. Make the…
- User
Build a polished, playable browser game: reimagine any obscure or ancient game. Make the core loop fun within the first ten seconds, with tight controls for both keyboard and touch, and juicy feedback — screen shake, particle effects, and satisfying animations. Include a start screen, a score system, pause and game-over states with instant restart, and a local high-score table. Style it with a cohesive visual theme and make sure it runs smoothly at 60fps on desktop and mobile.
Assistant
Picking an obscure one: Pok-A-Tok / Ulama, the ancient Mesoamerican ballgame — reimagined as a fast arcade "keep the rubber ball aloft and slam it through the stone rings" game.
Now the game engine.
Now the React shell: HUD, start/pause/game-over overlays, high-score table, and input wiring.
POK-A-TOK — a 60fps arcade reimagining of the ancient Mesoamerican ballgame (Ulama / pitz).
Core loop (fun in ~5 seconds): the rubber ball falls, you slide your player under it and bounce it off your jade hip guard. Every bounce builds a combo; timing Space/tap just as it lands triggers a Hip Slam (bigger points, extra power, particle burst). Blast the ball through either sacred stone ring for 500 × combo — every 3 rings grants an extra life. Drop the ball three times and it's over. Difficulty tiers ramp every 22 seconds (gravity + ball speed).
Implementation highlights
src/game/engine.ts— canvas 2D engine with fixed 120Hz physics timestep + interpolated rendering, letterboxed 3:2 court that scales to any screen with DPR-aware sizing.- Juice: screen shake on hits/rings/drops, screen flash, pooled particle system (dots + directional sparks), ball glow + fading trail + ground shadow, animated floating score popups, flickering torches, rotating ring glyphs, player lean/strike anticipation animation, feather headdress wobble.
- Controls: arrows/WASD + Space (keyboard), drag-to-move + tap-to-slam anywhere on the court plus a dedicated "Hip Slam" button on mobile; pointer capture so drags don't break.
- States: start screen, playing, pause (P/Esc, auto-pauses on tab blur), game over with instant restart (R/Space).
src/hooks/useHighScores.ts— top-8 localStorage Hall of Champions with new-record highlighting and a clear option.- Cohesive obsidian/jade/gold temple theme across HUD, overlays, and canvas.
Files built:
src/game/engine.ts,src/hooks/useHighScores.ts,src/App.tsx,index.html
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.