Drift King

Seele01-Flash
By
Drift King is an adrenaline-pumping drifting game where you master tight turns while evading relentless police pursuit. Simple two-button controls make it easy to learn but challenging to master.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Drift King". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Low-poly Arcade aesthetic with a **Synthwave/Cyberpunk** color palette (Neon Pink, Cyan, Deep Purple, Night Black). Use an **Orthographic Camera** positioned at a high angle (isometric view) to track the player and surrounding enemies clearly. * **Player Car**: A stylized black muscle car (resembling a '69 Charger) with distinct tail lights. * **Enemy Cars**: Police cruisers with flashing red and blue emissive blocks on the roof. * **Environment**: An infinite or large bounded asphalt arena. Instead of complex city geometry, use neon-rimmed obstacles (concrete barriers, crates, lamp posts) scattered procedurally. * **Visual Effects (VFX)**: * **Skid Marks**: Crucial for the "Drift" theme. The car must leave persistent black trails on the ground when turning. * **Smoke Particles**: Simple white cubic particles emitting from rear tires during sharp turns. * **Lighting**: Ambient purple light + dynamic point lights attached to police sirens. * **Performance**: Use simple geometry (BoxGeometry, CylinderGeometry) for all assets. Avoid complex shader materials; use MeshStandardMaterial with vertex colors. ### 2. Audio Requirements * **BGM**: A high-tempo, looping **Synthwave/Outrun** track (electronic, heavy bass) to maintain adrenaline. * **Sound Effects (SFX)**: * **Drift**: A continuous tire screeching sound that modulates pitch/volume based on the car's angular velocity. * **Sirens**: Looping police siren sound (spatial audio preferred). * **Impact**: A heavy metallic "crunch" when hitting obstacles or other cars. * **Collection**: A retro arcade "ding" or "coin" sound when capturing flags. ### 3. Gameplay Loop * **Core Mechanic**: The car accelerates automatically. The player only controls steering. The physics should be "slippery" to encourage drifting (oversteer). * **Objective**: Survive as long as possible while collecting "Flags" (yellow glowing cylinders) that spawn randomly in the arena. * **Enemy AI**: Police cars spawn periodically from the edges of the screen. They simply track the player's position, attempting to ram into the player. * **Scoring**: * +10 Points for every second survived. * +100 Points for collecting a flag. * **Game Over**: The game ends if the player's health reaches zero (depleted by crashing into cops/obstacles) or if the car is completely pinned/stopped for more than 2 seconds. * **Restart**: "Instant Restart" mechanic—tapping the screen after death immediately resets the game state without reloading the page. ### 4. Mobile Controls & Interaction * **Touch Controls (Split Screen)**: * **Turn Left**: Touch and hold anywhere on the **Left 50%** of the screen. * **Turn Right**: Touch and hold anywhere on the **Right 50%** of the screen. * **Brake/Reverse**: Touch **Both sides** simultaneously (optional, but good for getting unstuck). * **Orientation**: Portrait mode (vertical) preference for one-handed play, but responsive layout to support Landscape. * **UI Overlay**: * Score display: Top-center (large, readable font). * Health Bar: Floating above the player car or fixed at the top. * Game Over Screen: Simple overlay with "Final Score" and a pulsing "Tap to Restart" text. * **Feedback**: * **Camera Shake**: The camera should shake slightly upon impact. * **Vibration**: Trigger `navigator.vibrate(50)` on collisions. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Drift King is the ultimate test of your drifting skills and survival instincts. In this high-octane police chase game, you'll push your driving abilities to the limit as you outmaneuver pursuing cops, capture valuable flags, and dodge obstacles in an endless pursuit scenario. With its vibrant neon-lit cityscape and fast-paced action, Drift King delivers pure adrenaline rush that keeps you coming back for more.

The game features stunning visual design with a retro-futuristic aesthetic, complete with glowing police cars, dramatic lighting effects, and a pulsating urban environment that creates the perfect backdrop for high-speed chases.

Core Features

Intuitive Two-Button Control System

Drift King's brilliance lies in its simplicity. With just two controls - left and right steering - anyone can jump in and start drifting immediately. However, mastering the perfect drift timing and maintaining control during intense police chases requires skill and practice.

Endless Police Chase Action

Experience the thrill of never-ending pursuit as police cars relentlessly hunt you down. The AI-driven cops adapt to your driving style, making each chase unique and increasingly challenging as you survive longer.

Flag Capture Mechanics

While evading police, you'll need to strategically capture flags scattered throughout the city. This risk-reward system forces you to make split-second decisions between safety and scoring points.

Instant Restart Feature

Crashed? No problem! The instant restart feature ensures the action never stops. Learn from your mistakes and immediately jump back into the chase without lengthy loading screens.

Multiple Vehicle Options

Choose from various cars, each with unique handling characteristics. Find the vehicle that matches your drifting style and preferences for optimal performance.

Gameplay Mechanics

The core gameplay revolves around survival and skill progression. As you drift through the neon-lit streets, you'll need to:

  • Master Drift Timing : Perfect your entry and exit points for maximum speed retention
  • Navigate Traffic : Dodge civilian vehicles while maintaining your drift lines
  • Collect Flags : Strategically capture flags to boost your score without compromising safety
  • Manage Risk : Balance aggressive driving with survival instincts

Operation Guide

Basic Controls

  • Arrow Keys : Use left and right arrow keys for steering
  • Alternative Controls : A and D keys provide the same steering functionality
  • Drift Technique : Enter turns at speed and use quick steering inputs to initiate and maintain drifts

Advanced Tips

  • Start with gentle steering inputs to understand your car's drift characteristics
  • Look ahead to plan your drift lines through upcoming turns
  • Use the city's layout to your advantage by learning optimal routes
  • Practice smooth transitions between left and right drifts
  • Time your flag captures when police are farther away

Why Play Drift King

Perfect for Quick Gaming Sessions

With instant restarts and immediate action, Drift King is ideal for both quick gaming breaks and extended play sessions. No complex tutorials or lengthy setup - just pure driving excitement.

Skill-Based Progression

Unlike many mobile games, Drift King rewards genuine skill improvement. The better you become at drifting and evasion tactics, the higher your scores and survival times.

Cross-Platform Accessibility

Play directly in your browser on any device - desktop, laptop, tablet, or smartphone. No downloads required, making it perfect for gaming anywhere.

Retro-Modern Appeal

The game's visual style combines classic arcade racing nostalgia with modern graphics and effects, creating a unique aesthetic that appeals to both retro gaming fans and contemporary players.

Competitive Element

Challenge yourself to beat your personal best scores and survival times. The simple scoring system makes it easy to track improvement and compete with friends.

Frequently Asked Questions (FAQ)