I will examine the directory structure to see the existing project setup and available dependencies.
I will check the dependencies inside package.json.
I will now install three, @types/three, lucide-react, and canvas-confetti so we can build the 3D Venetian canal environment, custom water shaders, particle physics, and sleek HUD interface.
I will inspect src/index.css.
I will check index.html.
I will now update index.html with the title "Venezia Turbo — Canal Speedboat Racing", custom fonts for Italian architectural luxury & sleek HUD display, and proper viewport settings.
I will create src/types/game.ts containing all types for our Three.js boat, Venetian canal elements, checkpoint gates, camera modes, and track data.
I will now create src/audio/soundSystem.ts to provide Web Audio API synthesized sound effects for the boat engine, water waves, bridge gate chimes, boosts, and collisions without relying on external audio files.
I will now create src/game/tracks.ts containing the 3 distinct Venetian canal tracks with checkpoints, buildings, bridges, palines, gondolas, laundry lines, and guide arrows.
I will create src/game/proceduralVenice.ts to generate procedural 3D models for the luxury Riva wooden speedboat, arched Venetian bridges with glowing checkpoints, palazzo buildings, gondolas, paline mooring poles, laundry lines, and guide chevrons.
I will remove the unused variables archRadius and dist in src/game/proceduralVenice.ts.
I will remove the unused dist variable from createLaundryLineMesh in src/game/proceduralVenice.ts.
I will now create src/game/WaterShader.ts to render the sparkling, deep-emerald Venetian canal water with animated waves and sun reflections.
I will now create src/game/ParticleSystem.ts to manage wake trails, bow splash spray, and gate clearance particle bursts.
I will now create src/components/CanalCanvas.tsx to handle the 3D Venetian world rendering, boat physics, collision detection, gate clearance, camera follow, and sound integration.
I will clean up the unused variables in src/components/CanalCanvas.tsx.
I will remove the remaining unused variables in src/components/CanalCanvas.tsx.
I will remove accelRate, dragRate, and minDisToCenter in src/components/CanalCanvas.tsx.
I will remove gateDir and toGate from the checkpoint gate distance check in src/components/CanalCanvas.tsx.
I will now create src/components/HUD.tsx containing the timer, +5s bonus animation, gate counter, real-time mini-map radar, speedometer, turbo boost gauge, compact controls guide, camera switcher, track switcher, and victory/time-up glassmorphic banner.
I will clean up the unused import and prop inside src/components/HUD.tsx.
I will add touch throttle buttons (▲ / ▼) for mobile devices in src/components/HUD.tsx so onThrottleTouch is actively used.
I will now replace src/App.tsx with the complete, instantly starting Three.js Venetian canal speedboat experience.
I will remove gateId or use it in handlePassGate in src/App.tsx.
I will now run build_project to verify that the whole application compiles cleanly.
I have built and verified Venezia Turbo — Canal Speedboat Racing, a bright, instantly playable Three.js Venetian canal speedboat racing game.
✨ What We Built
-
Starts Immediately in Active Gameplay (Zero Screens/Menus/Overlays):
- When the app loads, your polished mahogany Riva-style luxury speedboat starts already cruising forward (
autoCruise active, heading directly down the winding canal toward Gate 1).
- There are no title screens, no level select overlays, no onboarding modals, and no press-start states. You can steer immediately (
A / D or Left / Right or touch controls) without clicking any menu.
-
Rich & Readable Venetian Canal Environment:
- Arched Stone & Brick Bridges: Span across the narrow canals with glowing checkpoint gates underneath (
Cyan/Gold pulsing light curtains and floating guide arrows pointing directly toward the next turn).
- Venetian Palazzos: Dozens of terracotta, ochre yellow, and cream-colored plaster buildings with arched gothic windows, stone foundations rising from the waterline, wrought-iron balconies with bright red geranium flower boxes, and terracotta tiled roofs.
- Striped Mooring Poles (
Paline): Classic spiral wooden poles (Red/White, Blue/White, Green/White, Gold/Black) clustered near palazzo steps and canal borders.
- Moored Black Gondolas: Floating beside the canal route with red velvet cushions and chrome
ferro da prò ornamental prows.
- Laundry Lines Overhead: Colorful shirts and sheets hanging on ropes strung across narrow canal turns above the boat.
- Deep Teal Water & Wake Particles: High-performance custom water shader with animated waves, sun reflections (
#fff5d8), dual white foam wake trails, and bow water spray bursts.
-
Core Gameplay & Mechanics:
- Timer & +5s Gate Bonus: Race against the clock. Passing through each arched bridge gate triggers a crystal chime, golden particle explosion, and an instant +5 Seconds Time Bonus (with a glowing popup).
- Gate Counter & Progress: Real-time gate counter (
Gate 3 / 14) with a visual progress bar.
- Speed Boost (
Space / Shift / Boost button): Unleash up to 130 KM/H with FOV cinematic acceleration lines. Every gate cleared recharges your boost fuel by +35%.
Files built: index.html, src/types/game.ts, src/audio/soundSystem.ts, src/game/tracks.ts, src/game/proceduralVenice.ts, src/game/WaterShader.ts, src/game/ParticleSystem.ts, src/components/CanalCanvas.tsx, src/components/HUD.tsx, src/App.tsx