Highway Racer 2 - Ultimate High-Speed Racing Game

Seele01-Flash
By
Highway Racer 2 is an adrenaline-pumping high-speed racing game featuring traffic dodging, car customization, and multiplayer competition. Race at breakneck speeds while avoiding obstacles and collecting power-ups in this free browser-based racing experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Highway Racer 2". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** High-contrast Arcade Realism. Use PBR (Physically Based Rendering) materials for the player car to mimic the glossy, reflective paint seen in the promotional image. The overall polygon count should be kept "Low-Poly" but with high-quality textures to ensure 60 FPS on mobile devices. * **Player Vehicle:** A red muscle car (resembling a Dodge Challenger). It must have functional headlights and taillights (emissive materials). Implement a dynamic camera that follows the car with slight "lag" to accentuate speed. * **Environment:** An endless, procedurally generated 4-lane highway. * **Skybox:** A warm sunset gradient (Golden Hour) blending into a distant city skyline silhouette on the horizon. * **Road:** Asphalt texture with scrolling UVs to simulate speed, white dashed lane markers, and concrete barriers on the sides. * **Traffic:** Generate diverse AI traffic vehicles (Sedans, Trucks, SUVs) using **Object Pooling** to manage memory. They should move at varying slower speeds in specific lanes. * **Optimization:** Use `InstancedMesh` for repetitive environment objects (street lamps, trees). Limit dynamic lights; use a baked environment map for car reflections. ### 2. Audio Requirements * **BGM:** High-energy, fast-paced Electronic Rock or Synthwave track that loops seamlessly to maintain adrenaline. * **SFX:** * **Engine:** A continuous engine hum that pitch-shifts up based on the player's speed. * **Interaction:** "Screech" sound when changing lanes abruptly. "Whoosh" sound effect when passing a traffic car closely (Near Miss mechanic). * **UI/Feedback:** A metallic "Clang" or "Crunch" on collision. A digital "Chime" when collecting coins/power-ups. ### 3. Gameplay Loop * **Core Mechanic:** Infinite runner style. The player car accelerates automatically (or manually via gas pedal). The goal is to drive as far as possible without crashing. * **Scoring System:** * **Distance:** Score increases over time/distance traveled. * **High Speed Bonus:** Score multiplier increases when maintaining top speed (above 100 km/h). * **Near Miss:** Bonus points awarded for passing traffic cars within a very small proximity radius. * **Obstacles:** AI Traffic vehicles change lanes randomly. * **Collectibles:** Spawn "Nitro" canisters (blue glow) for temporary speed boost and "Coins" (gold) for score. * **Fail State:** High-speed collision with any traffic vehicle or barrier ends the run immediately. ### 4. Mobile Controls & Interaction * **Screen Orientation:** Forced **Landscape Mode**. * **Touch Controls:** * **Steering:** Two large invisible touch zones covering the left 30% and right 30% of the screen for steering Left/Right. * **Brake:** A visible pedal icon in the bottom-left corner for braking/slowing down. * **Nitro:** A button in the bottom-right corner (activate only when Nitro bar is full). * **Haptic Feedback:** Trigger `navigator.vibrate(200)` on collision and a short `navigator.vibrate(50)` on "Near Miss" events. * **UI Overlay:** * Top Center: Current Score & Distance. * Top Right: Speedometer (Digital text: "120 KM/H"). * "Game Over" Modal: Large "Restart" button (minimum 60x60px touch area) and final score display. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Highway Racer 2

Highway Racer 2 delivers the ultimate high-speed racing experience directly in your browser. This thrilling 3D racing game challenges players to navigate through heavy traffic at breakneck speeds while collecting power-ups and avoiding crashes. With its stunning graphics, multiple game modes, and extensive customization options, Highway Racer 2 has become a favorite among racing enthusiasts worldwide.

Core Features

Multiple Game Modes for Endless Fun

Highway Racer 2 offers 6 distinct game modes that cater to different racing preferences:

  • Classic Mode : Dodge traffic for as long as possible while maintaining high speeds
  • Time Trial : Race against the clock to achieve the best times
  • Crash Mode : Embrace chaos and cause maximum damage (perfect for stress relief!)
  • Multiplayer Racing : Compete against real players from around the world
  • Endless Highway : Test your endurance in never-ending traffic scenarios
  • Challenge Mode : Complete specific objectives and unlock rewards

Extensive Car Customization

Personalize your racing experience with comprehensive vehicle customization:

  • Visual Modifications : Under-glow lights, custom decals, and paint jobs
  • Performance Upgrades : Enhanced engine torque, improved steering, and speed boosts
  • Multiple Vehicle Options : Purchase and collect various car models
  • Style Reflection : Create a vehicle that matches your unique racing personality

Multiplayer Competition

Race against friends and players worldwide in real-time multiplayer mode. Compete for leaderboard positions and prove your skills as the ultimate highway racer.

Gameplay Mechanics

High-Speed Traffic Navigation

The core gameplay revolves around maintaining maximum speed while skillfully dodging oncoming traffic, roadside obstacles, and other hazards. The realistic 3D physics engine ensures every near-miss feels authentic and heart-pounding.

Power-Up Collection System

Strategically collect power-ups scattered throughout the highway to: - Boost Speed : Temporary acceleration increases for overtaking - Shield Protection : Brief invincibility against crashes - Score Multipliers : Maximize your point earnings - Fuel Bonuses : Extend your racing sessions

Progression and Rewards

Earn points through risky driving maneuvers, near-misses, and sustained high speeds. Use these points to unlock new vehicles and purchase upgrades that enhance both performance and visual appeal.

Operation Guide

Basic Controls

Highway Racer 2 features intuitive controls suitable for all skill levels:

  • W Key or Up Arrow : Accelerate your vehicle
  • A Key or Left Arrow : Steer left to change lanes
  • D Key or Right Arrow : Steer right to avoid obstacles
  • S Key or Down Arrow : Apply brakes when necessary
  • Left Mouse Click : Interact with menus and upgrade options

Pro Tips for Success

  1. Maintain High Speeds : Higher speeds yield more points and excitement
  2. Master Lane Changes : Quick, precise movements are key to survival
  3. Collect Power-Ups : Don't miss opportunities for temporary advantages
  4. Upgrade Strategically : Balance visual customization with performance improvements
  5. Practice Different Modes : Each mode teaches unique skills

Account Features

Create a free account to save your progress across multiple devices and maintain your vehicle collection and customizations.

Why Play Highway Racer 2

Completely Free Gaming Experience

Enjoy full access to all game modes, vehicles, and features without any payment requirements. Highway Racer 2 proves that premium racing entertainment doesn't need a price tag.

Cross-Platform Accessibility

Play instantly on any device with a modern web browser - no downloads, installations, or storage space required. Whether you're on desktop, laptop, tablet, or smartphone, your racing adventure is always just a click away.

Competitive Edge

The multiplayer component adds unlimited replayability as you compete against players with varying skill levels and racing styles. Climb the leaderboards and establish yourself as a highway racing legend.

Stress Relief and Entertainment

Perfect for quick gaming sessions or extended racing marathons. The variety of game modes ensures you can match your gameplay to your mood - from relaxing endless drives to intense competitive racing.

Regular Content Updates

The game continues to evolve with new features, vehicles, and improvements based on player feedback, ensuring a fresh experience with each visit.

Frequently Asked Questions (FAQ)