Drive and Dodge - Online Car Racing Game

Seele01-Flash
By
Drive and Dodge is a thrilling online racing game where survival is everything. Navigate busy traffic while dodging aggressive cars that actively try to crash into you. Simple controls, endless gameplay, and pure adrenaline rush!

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Drive and Dodge". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Retro Arcade 3D style (Low-poly). Emulate the early 2000s Flash 3D aesthetic but with modern sharp rendering. * **Player Model**: A low-poly Formula 1 style race car. Color: **Bright Orange** (Body) with Black tires and spoilers, matching the reference image. * **Enemy Models**: Similar low-poly F1 or Sedan cars in distinct colors (Red, Blue, Grey) to distinguish them from the player. * **Environment**: An infinite, vertically scrolling highway with 3 or 4 distinct lanes. * **Ground**: Dark asphalt texture with white dashed lane markers moving downwards to simulate speed. * **Decor**: Simple low-poly guardrails or grass strips on the far left and right borders. * **Camera**: Fixed Third-Person Top-Down view (angled slightly behind the car), optimized for a vertical screen aspect ratio to show upcoming obstacles clearly. * **Optimization**: Use simple `BoxGeometry` and `CylinderGeometry` primitives for cars to keep the polygon count low for mobile performance. Use object pooling for enemy cars and road segments to prevent garbage collection stutter. ### 2. Audio Requirements * **BGM**: High-energy, fast-paced 16-bit Arcade Racing track (looping). * **SFX - Engine**: A continuous low-hum engine sound that slightly increases in pitch as the game speed increases. * **SFX - Movement**: A "Swoosh" or tire screech sound when the player changes lanes. * **SFX - Near Miss**: A Doppler-effect "Zoom" sound when passing an enemy car closely. * **SFX - Crash**: A loud metallic crunch/explosion sound for Game Over. ### 3. Gameplay Loop * **Core Mechanic**: The player drives an orange car on an infinite highway. The car accelerates automatically. * **Obstacles**: Enemy cars appear at the top of the screen and move down (relative to the player). * *Type A (Passive)*: Stays in one lane. * *Type B (Aggressive)*: Slowly drifts into the player's lane when getting close (simulating the "trying to crash into you" description). * **Progression**: The scroll speed of the road (and spawn rate of enemies) increases gradually every 10 seconds, making the game harder. * **Scoring**: Score increases based on distance traveled (time survived). Display score prominently at the top center. * **Win/Loss**: No win condition (Endless). Game Over occurs immediately upon collision with any other car, triggering a "Restart" button overlay. ### 4. Mobile Controls & Interaction * **Screen Orientation**: **Portrait Mode** (Vertical) is required for one-handed play and to maximize the view of the road ahead. * **Control Scheme**: **Split-Screen Tap Detection**. * Tap anywhere on the **Left half** of the screen: Player car hops one lane to the Left. * Tap anywhere on the **Right half** of the screen: Player car hops one lane to the Right. * **Movement Physics**: Movement between lanes should be snappy and instant (Lerp position quickly) rather than realistic steering, to allow for last-second dodges. * **Feedback**: * **Visual**: The car should tilt slightly (Roll rotation) in the direction of movement during a lane change. * **Haptic**: Trigger `navigator.vibrate(10)` on lane change and `navigator.vibrate(200)` on crash (if supported). * **UI**: Large, thumb-friendly "Play/Restart" button (minimum 60px height) centered on the screen. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Drive and Dodge is an intense endless racing game that puts your reflexes to the ultimate test. Unlike typical racing games where you compete for first place, this game is all about survival. You'll find yourself on a busy highway where other cars aren't just obstacles - they're actively hunting you down, trying to cause crashes and end your run.

The game's concept is brilliantly simple yet addictively challenging: drive forward and dodge everything that comes your way. What makes this game particularly exciting is the aggressive AI behavior - other vehicles will deliberately swerve toward you, creating heart-pounding moments where split-second decisions determine your fate.

Core Features

Endless Survival Gameplay

Experience unlimited racing action with no finish line in sight. Your only goal is to survive as long as possible while covering maximum distance. Each run presents new challenges as traffic patterns become increasingly unpredictable.

Aggressive AI Opponents

Unlike passive obstacle courses, Drive and Dodge features intelligent enemy cars that actively pursue and attack you. These aren't just moving barriers - they're programmed to hunt you down, making every moment on the road a tactical challenge.

Simple Yet Responsive Controls

Master the game instantly with intuitive arrow key controls. The responsive handling allows for precise lane changes, giving you the tools needed to escape even the most dangerous situations.

Fast-Paced Action

Every second counts in this high-speed survival challenge. The constant threat of collision keeps your adrenaline pumping as you weave through traffic at breakneck speeds.

Game Mechanics

Lane-Based Movement System

The highway is divided into multiple lanes, and you can quickly switch between them to avoid incoming threats. Strategic lane positioning becomes crucial as traffic density increases.

Progressive Difficulty

As you survive longer, the challenge intensifies. More aggressive cars appear, traffic becomes denser, and the margin for error shrinks considerably.

Score and Distance Tracking

Your performance is measured by how far you can travel before getting caught. Challenge yourself to beat your personal best with each attempt.

Operation Guide

Basic Controls: - Left Arrow Key : Move to the left lane - Right Arrow Key : Move to the right lane - Up Arrow Key : Accelerate (if available) - Down Arrow Key : Brake or slow down (if available)

Survival Tips: 1. Stay Alert : Keep your eyes on multiple cars simultaneously 2. Plan Ahead : Don't just react - anticipate where threats will come from 3. Use Quick Movements : Make decisive lane changes rather than hesitating 4. Find Safe Zones : Look for gaps in traffic where you can briefly relax 5. Practice Pattern Recognition : Learn how aggressive cars behave and move

Why Play Drive and Dodge

Perfect for Quick Gaming Sessions

With its pick-up-and-play design, Drive and Dodge is ideal for short breaks or whenever you need a quick adrenaline rush. Each game session can last anywhere from seconds to several minutes, depending on your skill level.

Develops Reflexes and Decision-Making

This game is an excellent reflex trainer. The constant need to make split-second decisions under pressure helps improve reaction times and spatial awareness.

Competitive Element

Challenge friends to beat your high score or compete against your own personal records. The simple scoring system makes it easy to track improvement over time.

No Complex Learning Curve

Unlike complicated racing simulations, Drive and Dodge can be enjoyed immediately. The straightforward concept means anyone can start playing right away, but mastering the game takes practice and skill.

Stress Relief Through Focus

The intense concentration required can serve as a form of active meditation, helping you forget daily worries while focusing entirely on survival.

Frequently Asked Questions (FAQ)