Build a polished, playable browser game: PingPong. Make the core loop fun within the…
- User
Build a polished, playable browser game: PingPong. 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
I'll build a neon-themed Pong with a canvas engine plus React UI overlays.
Now wiring sounds into the events:
PingPong · Neon Rally is built and compiling cleanly.
What's in it:
- Canvas engine (
src/game/engine.ts): fixed 960×600 logical field scaled to any screen with DPR-aware rendering, substepped ball physics (no tunneling), angle-based paddle reflection with spin from paddle velocity, predictive AI that ramps difficulty (faster + shorter paddle) as your score climbs. - Juice: screen shake on every impact, particle bursts (edge hits spray gold, aces spray violet, misses spray rose), ball trail, paddle squash-and-stretch + white flash, floating "+points / EDGE! / 5x RALLY!" text, slow-motion on aces and life loss, and procedural WebAudio blips that pitch up with your rally (mutable).
- Scoring: +1 per hit, ×3 for edge hits, multiplier every 5-hit rally, +25 for an ace past the AI. Three lives shown as glowing pips.
- States: start screen with control hints, pause (P/Esc or button) with resume/restart, game over with score, best rally, "New High Score" badge, and instant restart via Space or button.
- Canvas engine (
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.