PolyTrack - Low-Poly Racing Game

Seele01-Flash
By
PolyTrack is an exciting low-poly racing game featuring 13 unique tracks with loops, jumps, and high-speed action. Race against time, climb leaderboards, and create custom tracks in this thrilling browser-based racing experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "PolyTrack - Low Poly Arcade Racing". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a clean, vibrant "Low-Poly" aesthetic. Use Flat Shading or Toon Shading (MeshToonMaterial) to emphasize the geometric look. * **Color Palette:** High contrast. Skybox should be a bright azure blue with simple, blocky white clouds. The track surface should be light blue or white with distinct striped curbs (red/white or blue/white) on edges to indicate flow. * **Car Model:** A blocky, Formula 1-style racing car constructed from basic primitives (BoxGeometry for the chassis, CylinderGeometry for wheels). The car must have separate meshes for the wheels to allow rotation and steering animations. * **Track Construction:** The track must be 3D and modular, featuring ramps, banked curves, and a vertical loop-de-loop. Use a "floating track" design where falling off means resetting. * **Mobile Optimization:** Use `InstancedMesh` for repetitive track elements (like guard rails or barriers). Keep the total polygon count low. Do not use expensive shadows; use a simple directional light and ambient light. ### 2. Audio Requirements * **BGM:** An energetic, fast-paced "Synthwave" or "Eurobeat" loop that encourages speed. * **Sound Effects (SFX):** * **Engine:** A synthesized hum that increases in pitch based on the car's current speed. * **Drift:** A high-frequency screeching noise when the car turns sharply at high speeds. * **UI:** A "click" sound for buttons and a "countdown" beep (3-2-1-GO) for the race start. * **Reset:** A glitch or "rewind" sound effect when the car respawns. ### 3. Gameplay Loop * **Core Mechanic:** Time Attack. The player races against a timer from a Start Gate to a Finish Gate. * **Physics:** Implement Arcade Physics (e.g., using Cannon.js or a custom Raycast Vehicle controller). The car should have high grip, fast acceleration, and the ability to stick to the track during loops (simulating downforce). * **Fail State:** If the car falls off the edge of the floating track (y-position < threshold), it automatically resets to the last passed checkpoint (or start line) with a time penalty. * **Victory Condition:** Crossing the finish line stops the timer and displays the final time with a "Retry" button. * **Ghost System:** If possible, record the player's position data array during a run and replay it as a semi-transparent "Ghost Car" on the next attempt. ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Landscape Mode Only**. Force the canvas to resize to window innerWidth/Height. * **Touch Controls (Split Screen):** * **Left Side of Screen:** An invisible or semi-transparent horizontal slider/joystick for Steering (Left/Right). * **Right Side of Screen:** Two distinct large buttons. One for **Accelerate** (bottom right) and one for **Brake/Reverse** (to the left of the accelerate button). * **Camera:** A smooth "Chase Camera" positioned behind and slightly above the car. It should use `Lerp` to follow the car's position but lag slightly behind to create a sense of speed. The camera should stiffen/shake slightly during high-speed landings or collisions. * **UI Layout:** * Top Center: Large timer (00:00:00). * Top Right: Reset Button (Icon). * Ensure all touch targets are at least 44x44px for accessibility. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About PolyTrack

PolyTrack is a captivating low-poly racing game that delivers pure adrenaline through its unique visual style and challenging track designs. With its distinctive geometric art style and physics-based gameplay, this free browser game offers an engaging racing experience where precision and speed determine your success. The game features 13 carefully crafted tracks filled with loops, jumps, and obstacles that will test your driving skills to the limit.

Core Features

Unique Low-Poly Visual Style

PolyTrack stands out with its stunning low-poly graphics that create a clean, modern racing environment. The geometric visual design not only looks impressive but also ensures smooth performance across all devices, from desktop computers to mobile phones.

13 Challenging Racing Tracks

Each track in PolyTrack offers a unique racing experience: - Loop-the-loops that challenge your momentum control - High-speed jumps requiring perfect timing - Tight corners testing your precision steering - Multi-level sections adding vertical complexity - Time trial challenges where every millisecond counts

Custom Track Builder

Unleash your creativity with PolyTrack's built-in track editor. Design and build your own racing circuits, complete with: - Custom loop placements - Jump configurations - Obstacle arrangements - Unique track layouts - Shareable track designs

Competitive Leaderboards

Compete against players worldwide and climb the global rankings. Track your best times, compare performances, and strive to become the ultimate PolyTrack champion.

Gameplay Mechanics

PolyTrack combines accessible controls with challenging physics-based racing. The game emphasizes: - Momentum management through loops and jumps - Precise steering for optimal racing lines - Speed optimization to achieve the fastest lap times - Risk vs reward decision making on challenging sections

Controls Guide

Master PolyTrack with these simple yet responsive controls: - W or Up Arrow : Accelerate forward - S or Down Arrow : Brake or reverse - A or Left Arrow : Steer left - D or Right Arrow : Steer right - R or Enter : Reset position when stuck

The intuitive control scheme ensures that both newcomers and experienced racers can quickly get into the action while mastering the nuances of high-speed racing through complex track layouts.

Platform Compatibility

PolyTrack offers seamless cross-platform gaming: - Desktop browsers for precision control with keyboard - Mobile devices with touch-optimized controls - Tablet support for the best of both worlds - No downloads required - play instantly in your browser

Why Play PolyTrack?

Perfect for Quick Racing Sessions

With its instant-access browser gameplay, PolyTrack is ideal for quick racing sessions during breaks or extended gaming marathons. The game's track variety ensures that every race feels fresh and challenging.

Skill-Based Progression

Unlike many racing games that rely on upgrades, PolyTrack focuses on pure driving skill. Your improvement comes from mastering the physics, learning optimal racing lines, and perfecting your timing through the challenging track sections.

Creative Expression

The custom track builder transforms players from racers into track designers, offering unlimited replayability as you create and share increasingly complex and creative racing circuits.

Competitive Community

Join a global community of racing enthusiasts competing for the fastest times. The leaderboard system provides ongoing motivation to improve your skills and achieve new personal bests.

Frequently Asked Questions (FAQ)