I will list the files in the project to understand the starting template and structure before we build our All-Star Swamp Cooking game!
I will read package.json to check which dependencies (such as icons or animation libraries) are currently installed.
I will now install lucide-react and canvas-confetti (plus its types) to enhance our start screen, menus, high score tables, and victory celebration animations.
I will examine index.html and update it with an engaging title, modern gaming fonts from Google Fonts ('Fredoka' and 'Press Start 2P'), and proper touch viewport styling so mobile controls feel responsive and native.
I will update index.html with vibrant gaming fonts from Google Fonts ('Fredoka' and 'Lilita One'), suitable theme icons, and the new title: "All-Star Kitchen: Somebody Once Told Me the World is Gonna Roll Me!".
I will check src/index.css to see the current Tailwind configurations and stylesheet setup.
I will update src/index.css to define custom gaming font classes (font-title), keyframe animations for floating score texts and glowing combo meters, and touch optimizations (touch-action: none and -webkit-tap-highlight-color: transparent) to ensure responsive mobile playing.
I will now create src/types.ts defining our game states, ingredients, floating text, particles, unlocked chef attire, and high score items.
I will create src/utils/data.ts containing the lyric sequences for our combo multipliers ("Somebody Once Told Me..."), our array of cooking ingredients and hazards, epic rolling bosses, and unlockable customization items.
I will now create src/utils/storage.ts to persist high scores, unlocked hats and weapons, earned swamp coins, discovered recipe almanac ingredients, and game audio settings in localStorage.
I will create src/utils/sound.ts, implementing a custom Web Audio API synthesizer engine that generates zero-latency food chopping sound effects (blade slices, skillet sizzles, boiling splashes, torch flames), pentatonic musical combo chords, hazard explosions, and an energetic background synth-rock chiptune track inspired by the "All Star" chord progression.
I will add a toggleMute() method to src/utils/sound.ts to utilize isMuted, enabling one-click sound muting and fixing the typescript lint warning.
I will ensure that all audio effects and background music check this.isMuted before playing.
I will now build src/components/GameCanvas.tsx. This is the high-performance 60FPS canvas gameplay engine featuring real-time particle physics, screen shake dynamics, interactive food splitting animations, multi-lane rhythmic collision detection for both keyboard and touch controls, and periodic Rolling Boss boulder fights.
I will now create src/components/HUD.tsx to display real-time player score, health hearts, time remaining, combo multiplier badges, the All-Star Hyper Mode energy meter, and a responsive pause toggle.
I will create src/components/StartScreen.tsx featuring an interactive title menu, game mode selector (Arcade, 60-Second Time Attack, Endless Chill), avatar preview, coin counter, and navigation to Customization, Leaderboards, Recipe Cookbook, and Settings.
I will create src/components/PauseModal.tsx providing pause menu controls with zero-delay resume, instant game restart, interactive audio sliders, and kitchen shortcut reference charts.
I will create src/components/GameOverModal.tsx, featuring high-score registration, personal best confetti celebrations, performance breakdowns (max combos, boss defeats, perfect hits, coins earned), and instant retry capabilities.
I will create src/components/LeaderboardModal.tsx, featuring tabbed local leaderboards for Arcade and Time Attack modes with rank badges, combos, and boss takedom stats.
I will create src/components/CustomizationModal.tsx, providing an in-game store and locker where players can purchase and equip Chef Hats, Spatulas/Cleavers, and environmental Kitchen Themes using earned Swamp Coins.
I will create src/components/CookbookModal.tsx, showcasing the "Swamp Cookbook" recipe almanac where players can read humorous fun facts and flavor notes for discovered ingredients.
I will create src/components/SettingsModal.tsx allowing players to customize keyboard shortcuts, toggle juicy screen shake physics, and fine-tune independent volume levels for chiptune music and blade slash sound effects.
I will now implement src/App.tsx to serve as the master state coordinator connecting the audio synthesizer engine, persistent local storage, custom screens, HUD overlay, and modal windows with zero-latency restart capabilities.
I will now build the project using build_project to verify that our TypeScript code, Web Audio synthesizer, canvas render loop, and React components compile cleanly without errors.
I have built the complete, highly polished browser game: All-Star Kitchen: Somebody Once Told Me the World is Gonna Roll Me!
✨ Highlights of What Was Built:
-
The Core Gameplay Loop (Fun in the First 10 Seconds):
- 4-Lane Rolling Conveyor Action: Ingredients continuously roll down four dedicated culinary lanes towards your Chef Target Zone:
- Lane 1 (Chop 🔪): Slicing Swamp Onions 🧅, Ogre Melons 🍈, and Fairy Apples 🍏.
- Lane 2 (Flip 🍳): Tossing Morning Waffles 🧇, Dragon Flapjacks 🥞, and Mud Burgers 🍔.
- Lane 3 (Boil 🍲): Simmering Glow Toadstools 🍄 and Enchanted Garlic 🧄 in the cauldron.
- Lane 4 (Roast 🔥): Toasting Dragon Breath Chilis 🌶️, Royal Mallows 🍡, and Feast Drumsticks 🍗.
- Hazard Bombs (Ignore & Let Roll!): Avoid tapping Rotten Mud Bombs 💣 or Toxic Scum 🧪! Successfully letting them pass without striking awards a dodge bonus.
-
Juicy Feedback & Smash Mouth Combo Lyrics:
- Every rhythm slice generates physical Screen Shake (configurable in Settings), multi-color splash particles, floating score popups (
🌟 PERFECT!, 👍 GREAT!), and split food piece physics!
- As your combo meter rises, floating shoutout banners sequence through the iconic song lyrics ("SOMEBODY..." ➔ "ONCE TOLD ME!" ➔ "THE WORLD IS GONNA ROLL ME!" ➔ "HEY NOW! YOU'RE AN ALL STAR!").
- All-Star Hyper Mode: Hitting perfects and golden truffles fills your Hyper Gauge. At 100%, rainbow disco lighting illuminates the kitchen, scores multiply by 5x, and confetti bursts across the screen!
-
Zero-Latency Web Audio API Synth Engine:
- Custom Sound Synthesizer: Generates authentic kitchen acoustics in real time—crisp cleaver slashes, skillet sizzles, bubbling Cauldron pops, and fire blowtorch roasts! Each hit sings a pentatonic musical note so you create rhythm rock music as you cook.
- Chiptune Soundtrack: Loops an upbeat synthesized ska/electronic beat reminiscent of the "All Star" chord progression that speeds up dynamically during intense boss events and hyper mode.
-
Three Game Modes & Boss Events:
- 🏆 All-Star Arcade: Classic progressive speed, 3 health hearts (with heart restorations from Golden Waffles), and gigantic rolling boss boulder fights every 30 seconds where you must furiously mash all lanes!
- ⏱️ 60-Second Speed Run: Test maximum reaction velocity in a frantic 60-second time attack with zero life limits.
Files built: index.html, src/index.css, src/types.ts, src/utils/data.ts, src/utils/storage.ts, src/utils/sound.ts, src/components/GameCanvas.tsx, src/components/HUD.tsx, src/components/StartScreen.tsx, src/components/PauseModal.tsx, src/components/GameOverModal.tsx, src/components/LeaderboardModal.tsx, src/components/CustomizationModal.tsx, src/components/CookbookModal.tsx, src/components/SettingsModal.tsx, src/App.tsx