I am going to check the project structure using list_files to understand the existing setup and dependencies.
I am going to check package.json to see existing dependencies such as icons or styling libraries.
I will install lucide-react for UI icons (ranking badges, garage controls, quick chat, replay controls, settings, and Elo testing controls).
I will read index.html to check the title and meta tags.
I will update index.html to set the title to "Rocket League 2D - Turbo Arena" and add Google Fonts ('Chakra Petch' and 'Rajdhani') for the iconic Rocket League esports aesthetic.
I am going to read src/index.css to check the CSS setup.
I will update src/index.css to define utility classes for the esports fonts, neon glows, custom scrollbars, and animation transitions.
I will create src/types/game.ts to define data types for competitive ranks, Elo MMR, cars, ball, stadium arena, boost pads, game modes, AI profiles, garage items, and quick chat.
I will create src/utils/ranks.ts to implement the competitive rank hierarchy from Bronze I to Supersonic Legend, Elo rating calculation, AI skill scaling based on Elo, and rank badges.
I will clean up the unused import in src/utils/ranks.ts.
I will create src/utils/audio.ts to implement a Web Audio API sound engine that synthesizes boost sounds, jumps, ball impacts, goal explosions, demolition booms, quick chat beeps, and countdown alarms.
I will create src/utils/ai.ts to implement the dynamic Bot AI engine that scales with the bot's Elo / MMR rating. It includes proper Rocket League rotation, boost pill gathering, flips for supersonic speed, defensive shadowing, and shot aiming.
I will clean up the unused variables in src/utils/ai.ts.
I will remove the unused ownGoalY variable in src/utils/ai.ts.
I will create src/utils/physics.ts to implement Rocket League 2D physics: stadium boundaries with rounded corner geometry, boost pads, car acceleration/drift/supersonic speeds, jumping and aerial flips, ball spin (English), and collision response.
I will remove the unused speed variable in src/utils/physics.ts.
I will read lines 305 to 325 of src/utils/physics.ts to locate the unused speed variable.
I will remove line 313 from src/utils/physics.ts.
I will create src/utils/explosions.ts to implement custom goal explosions (Standard, Vortex Black Hole, Fireworks, Electroshock, Pixel Party) with dynamic particle effects.
I will create src/components/Navbar.tsx for the top navigation bar with rank badges, Elo tester modal button, mode selector, garage modal trigger, and audio controls.
I will create src/components/EloTesterModal.tsx to let users test any Elo / Rank rating from 0 to 2600 MMR, inspect live bot AI parameters at each rating, and launch a test match.
I will remove the unused RANK_TIERS import in src/components/EloTesterModal.tsx.
I will create src/components/GarageModal.tsx to let users customize their car body (Octane, Dominus, Fennec, Breakout), primary and secondary paint colors, boost trail style, and goal explosion effect.
I will create src/components/HelpModal.tsx to display all keyboard, mouse, and on-screen controls for Rocket League 2D.
I will create src/components/HUD.tsx to implement the Rocket League in-game HUD: top team scoreboard, countdown clock, overtime badge, circular boost meter (0-100), Supersonic indicator, Ball Cam toggle, Quick Chat feed, and the post-match scoreboard with Elo MMR gain/loss animations.
I will remove the unused RotateCcw import in src/components/HUD.tsx.
I will create src/components/GameCanvas.tsx to implement high-FPS HTML5 canvas rendering with dynamic Ball Cam / Car Cam tracking, rounded stadium walls, turf stripes, goal nets, boost pills with respawn gauges, car bodies with aerial elevation and shadows, spinning soccer ball, supersonic wheel trails, and shockwave explosions.
I will create src/App.tsx to integrate the Rocket League 2D game loop, competitive match flow, Bot AI spawning scaled by Elo, keyboard and mouse controls, goal scoring celebrations, Quick Chat bot reactions, and Elo MMR progression.
I will update src/App.tsx to fix the import paths for ./utils/ranks, GameCanvas, and ARENA_WIDTH / ARENA_HEIGHT, and remove any unused variables.
I will remove the unused isBluePlayer variable in src/App.tsx.
I will now build the project using build_project to test for any TypeScript or bundling issues.
I have created Rocket League 2D — Competitive Turbo Arena, a high-performance 2D Rocket League web application built to the T with authentic physics, rankings, dynamic bot AI, and a full Elo testing sandbox.
🚗 What was built & key features:
-
Rocket League Gameplay & Physics (src/utils/physics.ts, src/utils/explosions.ts):
- Battle-Car Controls: Forward/reverse acceleration, dynamic angular steering, and powerslide / handbrake drifting (
E, Alt, or Right Click) for high-angle turns.
- Boost System: 4 Large 100% Corner Boost Pills (10-second respawn) and 14 Small 12% Field Pads (4-second respawn). Features the iconic Circular Boost Meter (0-100) with glowing neon rim and numeric readout.
- Supersonic & Demolitions: Reaching top speed triggers Supersonic mode with flame trails and sonic boom effects. Hitting an enemy at Supersonic speed causes a Demolition with a fiery smoke explosion and a 3-second respawn timer.
- Jumping, Double Jumping & Flips: Press
Space / J once to jump, then press again in the air within 1.5 seconds for a Double Jump or hold a direction for a Flip / Aerial Dodge (Front, Back, Side, or Diagonal) for high-speed power shots!
- Ball Physics & Spin: Real 2D circle physics with wall/car restitution, angular spin (English) that curves bounces, and glowing team touch attribution for goals and assists.
- Camera & Screen Shake (
src/components/GameCanvas.tsx): Smooth dynamic camera with toggleable Ball Cam vs Car Cam (C or Y), zooming smoothly when the ball is far and shaking on big hits and goals.
- Goal Explosions & Stadium: Rounded stadium corner geometry, goal net interiors, stadium horn audio, and customizable Goal Explosions (Standard Boom, Vortex Black Hole, Fireworks, Electroshock, and Pixel Party).
-
Competitive Rankings, Elo MMR & Scaled Bot AI (src/utils/ranks.ts, src/utils/ai.ts):
- Rank Hierarchy: Complete hierarchy from Bronze I to Grand Champion III and Supersonic Legend (SSL).
- Dynamic Bot AI scaled by Elo: Bot reaction speed, aerial goal attempts, shot accuracy, flip usage for supersonic travel, boost starving, shadow rotation, and demolition aggression scale continuously with the bot's Elo / MMR.
Files built: index.html, src/index.css, src/types/game.ts, src/utils/ranks.ts, src/utils/audio.ts, src/utils/ai.ts, src/utils/physics.ts, src/utils/explosions.ts, src/components/Navbar.tsx, src/components/EloTesterModal.tsx, src/components/GarageModal.tsx, src/components/HelpModal.tsx, src/components/HUD.tsx, src/components/GameCanvas.tsx, src/App.tsx