Night City Racing - 3D Street Racing Game

Seele01-Flash
By
Night City Racing delivers high-octane 3D street racing with fantastic supercars, epic stunts, and thrilling multiplayer action. Race through neon-lit city streets, complete challenging missions, and upgrade your dream car collection.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Night City Racing". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: High-saturation, arcade-style 3D graphics. The setting is a futuristic or stylized modern metropolis at sunset/dusk. The skybox should feature a vibrant orange/gold sunset gradient. * **Cityscape**: Create a backdrop of towering skyscrapers with emissive window textures (glowing grids) to simulate a night city. The buildings should be low-poly blocks with repeating textures to save performance. * **Vehicles**: * Player Car: A sleek, low-poly supercar (resembling a Lamborghini or Bugatti) with a reflective metallic shader. * The car needs distinct rear lights and an exhaust pipe emission point. * **Particle Effects**: Essential for arcade feel. Add blue/orange flame trails (Nitro/NOS) emitting from the exhaust, and tire smoke particles when drifting. * **Performance Optimization**: Use `InstancedMesh` for building blocks and road barriers. Limit dynamic lights to the player's car and key environmental markers. Use a simple baked shadow plane under the car instead of real-time shadow casting. ### 2. Audio Requirements * **BGM**: Fast-paced Electronic/Synthwave track with a high BPM to match the racing speed. * **SFX**: * **Engine**: A continuous engine hum that pitches up based on speed. * **Nitro**: A sharp "whoosh" or jet engine sound when boosting. * **Drift**: Screeching tire sounds triggered when lateral velocity exceeds a threshold. * **UI**: Mechanical clicking sounds for menus and a digital countdown beep (3, 2, 1, GO). ### 3. Gameplay Loop * **Core Mechanics**: A checkpoint-based arcade racing game. The player drives against AI opponents (or a ghost timer) on a looped city track. * **Physics Arcade Model**: The car should handle like an arcade racer, not a simulator. High grip, easy drifting mechanics (tap brake + turn), and exaggerated acceleration. * **Nitro System**: A "Nitro Gauge" fills up over time or by drifting. The player can activate it for a temporary speed boost (changing FOV and adding flame particles). * **Win/Loss Condition**: * **Win**: Finish 3 laps in 1st place or beat the target time. * **Loss**: Run out of time (if time-attack mode) or finish last. * **Currency**: Award "Cash" based on finishing position and drift duration, displayed in a post-game summary. ### 4. Mobile Controls & Interaction * **Layout (Landscape)**: * **Left Side**: A virtual analog joystick or two large arrow buttons (Left/Right) for steering. * **Right Side**: * Large "Pedal" button for Gas (Auto-accelerate option preferred for mobile, so this could be Brake/Reverse). * Medium "NOS" button (Nitro) positioned for easy thumb access. * Small "Camera" toggle icon. * **Touch Feedback**: Trigger the device's vibration (Haptic Feedback) during collisions, drifting, or when Nitro is activated. * **UI Scalability**: All HUD elements (Speedometer, Nitro Bar, Lap Counter, Mini-map) must remain visible and legible on smaller screens. Buttons must have a minimum touch target of 44x44px. * **Responsiveness**: Camera must smoothly follow the car with a slight delay (Lerp) to convey speed and weight during turns. ### 5. Code Structure & Tech Stack * Use **Three.js** for rendering. * Use **Cannon.js** or a simple custom physics engine for vehicle dynamics (raycast vehicle controller preferred). * Structure the code into classes: `Game`, `Car`, `Track`, `InputManager`, `UIManager`. * Ensure the `requestAnimationFrame` loop handles delta time correctly for smooth movement on different refresh rates (60Hz/120Hz). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Night City Racing

Night City Racing is an adrenaline-pumping 3D street racing game that transforms your browser into a high-speed playground. Set against the backdrop of a stunning neon-lit metropolis, this free racing simulator puts you behind the wheel of incredible supercars for heart-pounding races and wild challenges that will test your driving skills to the limit.

The game features breathtaking 3D graphics showcasing a futuristic cityscape bathed in vibrant neon lights. Two sleek supercars race side-by-side on pristine asphalt, with towering skyscrapers creating a dramatic urban canyon. The visual spectacle includes dynamic lighting effects, realistic car models, and an atmospheric city environment that makes every race feel cinematic.

Core Features

Multiple Game Modes for Every Racing Style

16 Progressive Racing Challenges : Master increasingly difficult racing circuits that take you from tricky city street corners to wide-open airfield landscapes. Each race pits you against four intelligent AI opponents in competitive battles for supremacy.

Epic Two-Player Split-Screen : Challenge friends locally with split-screen multiplayer on the same computer. Show off your racing prowess and settle the score in head-to-head competitions.

Exciting Challenge Missions : Earn extra cash through five unique challenge modes, including heart-stopping races against airplanes and time-trial competitions on obstacle-filled tracks. These challenges can be repeated endlessly for maximum earning potential.

Open-World Free Drive : Unleash your creativity in the open-world stunt mode. An arena packed with ramps and stunt objects lets you perform gravity-defying tricks while earning money for your spectacular feats.

Comprehensive Car Customization System

10 Incredible Supercars : Start with two vehicles and unlock eight additional high-performance machines using in-game currency earned through races and stunts.

7-Category Upgrade System : Fine-tune your vehicles across multiple performance aspects: - Engine : Boost top speed and acceleration - Brakes : Improve stopping power for tight corners - Agility : Enhance handling and responsiveness - Turbo : Maximize burst speed capabilities - Booster : Upgrade nitrous oxide systems - Rims : Customize wheel appearance - Paint : Create stunning two-toned color schemes

Gameplay Mechanics

Intuitive Racing Controls

The game features responsive control schemes optimized for both single-player and multiplayer experiences:

Single-Player Controls: - WASD or Arrow Keys for movement - Shift keys for NOS boost activation - R to reset car position - T for rear-view camera - C to cycle camera angles

Two-Player Split-Screen: Dedicated control layouts ensure both players can compete comfortably on the same keyboard without interference.

Progressive Difficulty System

The 16 main racing challenges are carefully designed to provide a smooth learning curve. Early races help you master basic driving mechanics, while later challenges demand precision timing, strategic use of boost systems, and mastery of advanced racing lines.

Why Play Night City Racing

Completely Free Experience : Enjoy the full racing experience without any payment requirements. All cars, upgrades, and game modes are accessible through gameplay progression.

Instant Browser Access : No downloads or installations required. Simply load the game in your web browser and start racing immediately.

Cross-Platform Compatibility : Perfect performance on desktop computers and mobile devices, ensuring you can race anywhere with an internet connection.

Endless Replayability : With repeatable challenges, extensive car customization, free-roam mode, and multiplayer options, Night City Racing offers hundreds of hours of entertainment.

Stunning Visual Quality : Experience console-quality 3D graphics directly in your browser, featuring detailed car models, dynamic lighting, and immersive city environments.

Whether you're a casual gamer looking for quick racing thrills or a dedicated enthusiast seeking deep customization and competitive multiplayer action, Night City Racing delivers an uncompromising street racing experience that will keep you coming back for more high-speed adventures.

Frequently Asked Questions (FAQ)