PolyTrack - Racing & Track Building Game

Seele01-Flash
By
PolyTrack combines high-speed racing with creative track building in a unique 3D racing experience. Design custom tracks, race against the clock, and share your creations with a thriving community.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**PolyTrack - Low Poly Arcade Racer**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Extremely low-poly, flat-shaded aesthetic similar to early 3D arcade games. Use vibrant, contrasting colors (e.g., bright blue car, beige track, dark red borders). No complex textures; use vertex colors or simple material palettes. * **Car Model:** A blocky, Formula 1-inspired vehicle constructed from simple geometric primitives (boxes, cylinders for wheels). The wheels must separate from the chassis to animate rotation and steering. * **Track Design:** A modular track system featuring straights, 90-degree turns, steep ramps, and vertical loops. The surface should have visible borders to guide the player. * **Environment:** A simple gradient skybox (Dark Blue to Light Blue). Background elements should be sparse low-poly mountains or abstract pillars to provide parallax depth without cluttering the mobile screen. * **VFX:** Simple particle systems for tire smoke when drifting and a "TrailRenderer" style effect for skid marks on the pavement. * **Optimization:** Use `InstancedMesh` for repeated environment objects. Limit real-time shadows; use a `HemisphereLight` for base lighting and a single `DirectionalLight` for main definition. ### 2. Audio Requirements * **BGM:** High-energy, fast-paced Synthwave or Arcade Electro track that loops seamlessy. * **Sound Effects (SFX):** * **Engine:** A synthesized engine hum that increases in pitch based on the car's current speed. * **Drift:** White noise screeching sound when the car is turning sharply/sliding. * **Impact:** A thud sound for collisions with walls. * **UI:** Retro "blip" sounds for countdowns and button clicks. ### 3. Gameplay Loop * **Objective:** Time Attack. Complete the track as fast as possible. * **Start:** The game begins with the car static, a "3, 2, 1, GO!" countdown UI overlay. * **Racing Mechanics:** * **Arcade Physics:** The car should have high grip but allow for drifting on sharp turns. It must stick to the track during loops (simulated downforce). * **Ghost System:** If the player restarts, show a semi-transparent "Ghost" car replaying the previous best run. * **Fail State:** Falling off the track triggers an instant reset to the last checkpoint (or start). * **Win State:** Crossing the finish line stops the timer. A results screen displays "Current Time" vs "Best Time" with a "Retry" button. ### 4. Mobile Controls & Interaction * **Orientation:** Force **Landscape Mode**. * **Touch Controls (Split Screen):** * **Left Half:** A horizontal slider or two large invisible touch zones for **Steering** (Left/Right). * **Right Half:** Two distinct buttons: Large "Gas" button (bottom right) and smaller "Brake/Reverse" button (left of Gas). * **UI Layout:** * **Top Center:** Digital Timer (00:00.000). * **Top Right:** "Restart" (R) icon for quick resetting (essential for this genre). * **Touch Feedback:** Add visual depression on buttons when pressed. If possible, trigger `navigator.vibrate` on collisions or finish line crossing. * **Camera:** A smooth "Follow Camera" rigidly attached to the car's rear but with slight interpolation (lag) to convey speed and acceleration. It must rotate to follow the car through loops. 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 revolutionary 3D racing game that puts you in control of both the race and the track itself. Unlike traditional racing games, PolyTrack allows you to design custom race tracks using an intuitive built-in editor, then race your customized car on these unique courses. Inspired by the legendary TrackMania series, this fast-paced, low-poly racing game challenges you to perfect both your driving skills and track-building creativity.

The game features thrilling loops, death-defying jumps, and high-speed sections where every millisecond counts. With 47 tracks available (15 official and 32 community-created), you'll never run out of racing challenges.

Core Features

Dual Gaming Experience

PolyTrack offers two interconnected gameplay modes: - Racing Mode : Race against the clock on various tracks, competing for the best lap times - Building Mode : Design and construct custom tracks using comprehensive editing tools

Complete Creative Freedom

The built-in level editor provides unlimited possibilities: - Design tracks with loops, jumps, curves, and obstacles - Choose from three different environments: Summer, Winter, and Desert - Export and share your track designs with the global community - Import community-created tracks for endless variety

Advanced Racing Features

  • Ghost Racing : Challenge other players asynchronously by racing against their "ghost" cars
  • Leaderboard Integration : Compare your times with verified players worldwide
  • Vehicle Customization : Personalize your car with custom colors for body, frame, and rims
  • Multiple Environments : Race through diverse landscapes without affecting gameplay mechanics

Thriving Community

Join an active community of track builders and racers: - Access 32+ community-designed tracks - Share design codes and building tips - Challenge other players' best times - Discover innovative track designs from creators worldwide

Gameplay Mechanics

Track Building Strategy

Success in PolyTrack requires mastering both speed and precision: - Start with simple straight-line tracks to learn the basics - Progress to complex designs featuring mountain jumps and aerial sections - Balance challenge with achievable lap times - Consider racing lines when placing curves and obstacles

Racing Excellence

Unlike typical arcade racers, PolyTrack demands: - Precise timing and control rather than pure speed - Strategic approach to each track section - Continuous improvement of personal best times - Adaptation to unique track designs created by the community

How to Play

Getting Started

  1. Choose Your Mode : Select from racing existing tracks or building your own
  2. Pick a Track : Start with official tracks to learn the mechanics, then explore community creations
  3. Customize Your Car : Select colors for your vehicle's body, frame, and rims
  4. Race Against Time : Focus on improving lap times rather than competing directly with other cars

Driving Controls

  • WASD or Arrow Keys : Control your car's movement
  • Enter/R : Restart the current race
  • Focus on Precision : Success comes from smooth, calculated driving rather than reckless speed

Track Editor Controls

  • Left-click : Place track pieces and objects
  • Right-click + Move : Adjust camera position
  • Mouse Scroll : Zoom in and out
  • Shift + Scroll : Adjust height placement
  • R/Space : Rotate selected items
  • T : Test drive your track during construction

Available Track Variety

PolyTrack offers 47 diverse racing experiences:

Official Tracks (15 total) : - 7 Summer environment tracks - 4 Winter environment tracks
- 4 Desert environment tracks

Community Tracks (32 total) : - 13 Summer community creations - 7 Winter community designs - 12 Desert community tracks

Each environment offers unique visual experiences while maintaining consistent racing physics, ensuring fair competition across all track types.

Why Play PolyTrack

PolyTrack stands out in the racing game genre by combining creative expression with competitive racing. Whether you're a racing enthusiast who loves perfecting lap times or a creative player who enjoys building and sharing custom content, this game offers endless entertainment.

The game's free-to-play model with no downloads required makes it accessible to everyone. The active community ensures fresh content regularly, while the ghost racing system provides competitive challenges without requiring real-time multiplayer coordination.

Perfect for players who enjoyed TrackMania or other time-trial racing games, PolyTrack elevates the formula by adding comprehensive track creation tools and seamless community integration.

Frequently Asked Questions (FAQ)