Endless Truck - Monster Truck Racing Game

Seele01-Flash
By
Endless Truck is an action-packed monster truck racing game where you perform incredible stunts, upgrade your vehicle, and race endlessly for the highest scores. Master physics-based gameplay and strategic upgrades to dominate the leaderboard.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Endless Truck**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D Side-Scrolling Arcade style. Use a vibrant, low-poly aesthetic with "Toon Shading" (Cel-shading) to mimic the cartoonish, high-energy vibe of the logo. The sky should be a bright, clear blue gradient. * **Player Asset:** A Monster Truck composed of a chassis and four large, independently animated wheels. The suspension should look dynamic. * **Environment:** An infinite procedural terrain generator creating a dirt track with hills, ramps, and flat straightaways. * **Obstacles & Props:** Wooden crates, red explosive barrels, metal scrap, and wooden ramps. * **Mobile Optimization:** Implement **Object Pooling** for terrain segments, coins, and obstacles to maintain 60 FPS on mobile devices. Use simple geometry for colliders (Box/Sphere) instead of complex meshes. * **Camera:** A side-view camera that follows the truck smoothly on the X-axis but has a slight lag/dampening on the Y-axis to prevent jittering on rough terrain. ### 2. Audio Requirements * **BGM:** High-energy, loopable instrumental Rock/Heavy Metal track (distorted guitars, driving drums) to induce adrenaline. * **Sound Effects (SFX):** * **Engine:** Continuous rumble that pitches up based on speed. * **Jump:** A compressed air "whoosh" sound. * **Collision:** Wood crunching (crates) or metal clanging (barrels). * **Collectibles:** High-pitched "Ding" or "Cha-ching" for coins; Liquid pouring sound for fuel. * **UI:** Mechanical clicks for menu buttons. ### 3. Gameplay Loop * **Core Mechanic:** The player drives the monster truck as far as possible before running out of fuel or destroying the truck. The truck moves automatically to the right, but the player controls balance and nitro/jumps. * **Resources:** * **Fuel:** Constantly depletes. Player must collect Red Gas Cans scattered on the track to refill. * **Hull Health:** Decreases when hitting explosive barrels or landing upside down. * **Cash:** Coins scattered in arcs over jumps. * **Stunts:** While in the air, the player can rotate the truck. Completing a 360-degree flip (Frontflip/Backflip) grants a speed boost and bonus cash upon a safe landing. * **Upgrade System (Meta-Game):** Between runs, a "Garage" UI appears allowing players to spend Cash on: * **Engine:** Increases max speed and acceleration. * **Fuel Tank:** Increases run duration. * **Tires:** Improves grip and flip speed. * **Hull:** Increases health points. * **Game Over:** Occurs when Fuel = 0 or Health = 0. Show a "Distance Traveled" summary and a "Retry" button. ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Landscape** (Horizontal) locked. * **Touch Controls:** * **Left Screen Area (Hold):** Lean Back / Brake (rotates counter-clockwise in air). * **Right Screen Area (Hold):** Accelerate / Lean Forward (rotates clockwise in air). * **Both Sides / distinct Jump Button:** Activate Jump (vertical impulse). * **UI Layout:** * **Top Left:** Distance counter and Cash count. * **Top Right:** Pause button (min 44x44px touch target). * **Top Center:** Fuel Bar (depleting horizontally) and Health Bar. * **Feedback:** * **Visual:** Screen shake on heavy impacts or explosions. Particle dust trails behind tires. "Floating Text" (+100$) when collecting coins or doing stunts. * **Haptic:** Trigger device vibration (using `navigator.vibrate`) when crashing into obstacles or landing a jump. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Endless Truck is a high-octane monster truck racing game that combines endless running mechanics with strategic vehicle upgrading. With an impressive 4.7/5 rating, this free-to-play browser game delivers non-stop action as you pilot a massive monster truck through challenging terrain, performing death-defying stunts and collecting cash to enhance your ride.

The game follows the classic "play until you crash" formula, where each run ends in spectacular fashion, but every crash brings you closer to building the ultimate monster truck machine.

Core Features

Endless Racing Action

Experience unlimited gameplay with procedurally generated tracks that keep every run fresh and exciting. The endless format means there's always a new distance record to achieve and new challenges to overcome.

Comprehensive Upgrade System

Customize and enhance five key components of your monster truck: - Engine : Boost acceleration and top speed for faster runs - Wheels : Improve handling, traction, and fuel efficiency - Hull : Increase durability to survive longer crashes - Fuel Tank : Extend your racing distance with larger capacity - Bumper : Smash through obstacles with devastating force

Physics-Based Stunt System

Perform spectacular flips, jumps, and aerial maneuvers using realistic physics. Master the art of landing perfect stunts to maximize your score multiplier and cash earnings.

Cross-Platform Compatibility

Built with HTML5 technology, Endless Truck runs smoothly on desktop computers, smartphones, and tablets without requiring any downloads or installations.

Game Mechanics

The core gameplay revolves around strategic decision-making between runs. Each crash provides valuable currency that can be invested in different upgrade paths. Will you prioritize raw speed with engine upgrades, or focus on durability to survive longer runs? Perhaps investing in better wheels for superior control over rough terrain?

The physics engine creates realistic vehicle behavior, making every jump, flip, and crash feel authentic. Timing your stunts correctly not only looks spectacular but also provides significant score bonuses that translate into upgrade currency.

Operation Guide

Basic Controls

  • Arrow Keys : Accelerate, brake, and control your truck's movement
  • Space Bar : Activate jump for clearing obstacles and performing stunts
  • Directional Input During Flight : Control mid-air rotations for perfect landings

Gameplay Tips

  1. Master the Physics : Learn how your truck behaves in different situations
  2. Plan Your Upgrades : Balance speed, durability, and handling based on your playstyle
  3. Perfect Your Landings : Smooth landings preserve momentum and prevent crashes
  4. Collect Everything : Grab all coins and power-ups during your runs
  5. Study the Terrain : Learn to anticipate upcoming obstacles and jumps

Why Play Endless Truck

Endless Truck stands out in the crowded racing game market by combining the addictive nature of endless runners with the strategic depth of upgrade systems. The game offers:

  • Instant Accessibility : No downloads required, play immediately in any modern browser
  • Progressive Gameplay : Every run makes your truck stronger and more capable
  • Skill Development : Improve your driving and stunt skills over time
  • Competitive Element : Climb the global leaderboards and compete with players worldwide
  • Stress Relief : Perfect for quick gaming sessions or extended play periods

Whether you're looking for a quick adrenaline rush during a break or planning an extended gaming session to perfect your monster truck, Endless Truck delivers an engaging experience that grows with your skills and dedication.

Frequently Asked Questions (FAQ)