I'll build a 3D "Jelly Bean Race" game using React Three Fiber — a Fall Guys-style obstacle course race with Mario Kart-style power-ups. Let me install the 3D dependencies and start building.
Now I'll build the game. Let me start with the global styles, store, and constants.
I need to fix the store — missing updateRival, use of require, and unused variable. Let me rewrite it properly.
Now I'll build the 3D course, player, bots, power-ups, HUD, menu, and wire it all together.
Now the Player controller with physics, input, collisions, and cute bean mesh.
Now the bots, power-up pickups, game scene, HUD, menu, and app shell — I'll batch the independent ones.
Build succeeded! Let me fix the font @import order warning by moving Google Fonts to the HTML head.
Let me fix the checkpoint positions to be at safe locations (not in the middle of gaps):
Let me do a final build to confirm everything works:
The game builds cleanly. Here's a summary of what I built:
🫘 Bean Blitz — 3D Obstacle Race
A fully playable 3D Fall Guys-style race with Mario Kart power-ups, built with React Three Fiber + Zustand.
🏁 The Course (8 sections, ~420m long):
- Start pad → straight run → moving platforms over a gap → rotating spinners → uphill stairs → jump-across platforms over a pit → rolling-boulder corridor → spinner gauntlet → final sprint → finish line with confetti.
⚡ 6 Mario Kart–style Power-ups (glowing orbs scattered along the course):
- ⚡ Mega Boost — 2.5× speed + super jump for 3s
- 🛡️ Bubble Shield — pass through obstacles for 4s
- 🍌 Banana Peel — drop a slip hazard behind you
- 🐚 Bean Shell — fire a projectile that stuns the nearest rival
- ⚡ Lightning — slow all 5 rivals for 4s
- 👻 Ghost Bean — phase through everything for 5s
🤖 Gameplay:
- 5 AI rival beans with a catch-up mechanic so the race stays close
- Live placement (1st–6th), progress bar, and race timer HUD
- Checkpoint respawn system if you fall off
- Spinner knockback, boulder launches, banana slips
- Squash/stretch + somersault jump animations, boost flames, shield bubble, ghost aura
- Custom jelly-bean color picker, 3-2-1-GO countdown, animated finish screen with leaderboard, press R to restart
🎮 Controls: WASD/Arrows to move · Space to jump · E to use power-up
Files created: src/game/{constants,store,Course,Player,Bot,PowerUps,Game}.tsx and src/components/{HUD,Menu}.tsx, with a polished animated menu as the entry point in App.tsx.
Files built: index.html, src/index.css, src/game/constants.ts, src/game/store.ts, src/game/Course.tsx, src/game/Player.tsx, src/game/Bot.tsx, src/game/PowerUps.tsx, src/game/Game.tsx, src/components/HUD.tsx, src/components/Menu.tsx, src/App.tsx