I'll build a polished arcade football (penalty striker) game. Let me start by exploring the project structure.
Now let me build the game. First, updating the HTML title and mobile viewport settings.
Now I'll create the game engine — a canvas-based penalty striker with one-button timing controls, perspective pitch, keeper AI, particles, and screen shake.
Now the core engine:
Now the React UI with start screen, HUD, pause/game-over overlays, and local high-score table:
Now let me build to verify everything compiles:
The build succeeds. Let me make one polish improvement — render the pitch behind the start/menu screens by starting the render loop on mount (idle rendering without updates):
I built STRIKER — Penalty Arcade, a polished, juicy football (penalty shootout) game that's fun within the first few seconds.
The core loop (fun in ~5 seconds)
One-button timing controls that work identically for keyboard and touch:
- Tap / Space to lock your aim (a reticle sweeps across the goal)
- Tap / Space to set power (a meter with a green "sweet spot" and red "over the bar" zone)
- The ball flies with perspective scaling while a diving keeper tries to save it
Aim near the posts + high power to beat the keeper. Chain goals for escalating combo multipliers. 3 misses = full time.
Juice & feedback
- Screen shake and a camera zoom pulse on every goal
- 90-piece confetti burst from the net, plus save puffs
- Net flash ripple, ball spin + motion trail, ground shadows
- Floating pop text ("GOAL! x3", "SAVED!", "+400")
- A perspective-projected striped pitch, night stadium with flickering crowd, floodlight glows, and a diving animated keeper
- Procedural WebAudio SFX (whistle, kick, goal jingle, save thud) — no assets, with a mute toggle
States & systems
- Start screen with title, how-to-play, best score, and leaderboard
- HUD with live score, animated combo badge, and ball "lives"
- Pause (P / Esc / button, also auto-pauses on tab switch) with resume/restart
- Game over with score/goals/best-combo breakdown, "NEW BEST!" celebration, and rank
- Local high-score table (top 5) persisted in
localStorage
- Difficulty ramps as you score — the keeper gets faster and guesses better
Performance
- Everything renders on a single
<canvas> via one requestAnimationFrame loop with delta-time and a DPR-capped, letterboxed logical resolution (480×760) for crisp, smooth 60fps on desktop and mobile. Overlays are React DOM for sharp text, and touch input uses touch-none / pointer events.
The project builds cleanly. Press PLAY (or Space) to kick off.
Files built: index.html, src/game/audio.ts, src/game/engine.ts, src/game/useHighScores.ts, src/App.tsx