Act as a senior game developer and game designer. I want you to write the complete code…
- User
Act as a senior game developer and game designer. I want you to write the complete code and structure for a highly optimized, cross-platform 2D browser game. The game must be fully responsive and run perfectly on both PC (mouse controls) and mobile (touch controls). It must be heavily optimized and extremely efficient for all devices, ensuring smooth frame rates without draining device resources. Do not rely on any specific frameworks or tech stacks in your planning unless you determine it is the absolute best way to achieve these exact mechanics—just focus on delivering a functional, premium-quality game.
Core Game Concept
The game is a digitization of a classic "pen and paper" football (soccer) game, elevated into a modern, highly stylistic 2D multiplayer experience. The board consists of a football field surrounded by solid border walls. There are two goalposts on opposite ends. Teams are represented by minimalistic, highly polished dots (e.g., Black vs. White) arranged in specific football formations. Each team also has a designated Goalkeeper dot.
Aesthetics & Vibe
- Visuals: The game must look extremely premium, stylistic, and handcrafted (avoiding any generic or "AI-generated" look). It should feature crisp 2D graphics, smooth animations, and a sleek, modern UI.
- Physics: The ball physics must feel satisfying and weighty. It needs to behave similarly to a Carrom board or billiards game, meaning players can shoot the ball so it bounces off the border walls to perform trick passes or shots.
Match Rules & Win Conditions
- Score Limit: The first player to reach 5 goals immediately wins the match.
- Time Limit: The match operates on a global 3-minute countdown timer.
- Victory: If the 3-minute timer runs out before anyone reaches 5 goals, the player with the most goals wins (include a sudden-death/golden-goal state if it ends in a tie).
Gameplay Mechanics
- Starting the Match: A coin toss or randomizer determines which player gets the first turn.
- Controls & Turn Timer:
- The active player clicks/touches their chosen dot, drags the pointer backward (like a slingshot mechanism), and releases to shoot the ball toward another player or the goal.
- Shot Clock: There is a brief, strict timer for taking a shot. If the active player fails to shoot before the timer runs out, the game will automatically shoot the ball in a completely random direction with random power.
- Dynamic Positioning & Interceptions (Crucial Mechanic):
- The game is not strictly turn-based; it has a dynamic real-time element.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.