DTunnel - Flying Through Musical Tunnels

Seele01-Flash
By
DTunnel is an exciting flying game where you navigate through winding tunnels synchronized to electronic music. Keep your arrow inside the tunnel boundaries or face explosive consequences in this challenging arcade experience.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "DTunnel". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Modern Minimalist / Abstract. Recreate the aesthetic of the provided screenshot: a square-shaped tunnel with a clean, matte finish. Use a palette of beige/sand/tan colors for the tunnel walls, similar to cardboard or unpainted wood, but with high-quality lighting (Ambient Occlusion and soft Directional Light) to define the geometry. * **The Tunnel:** Use a procedural generation system (likely utilizing `THREE.TubeGeometry` along a `THREE.CatmullRomCurve3` path). The tunnel must undulate (move up/down) and curve (turn left/right) dynamically as the player progresses. * **Obstacles:** Generate geometric blocky obstacles or "steps" inside the tunnel (as seen in the screenshot) that the player must fly over or around. * **Player Model:** A simple, low-poly 3D Arrow or triangular "paper plane" style ship. It should have a distinct color (e.g., bright orange or red) to contrast against the beige tunnel. * **Mobile Optimization:** Use `InstancedMesh` for repeated obstacles if possible. Keep shadow map resolution moderate. Ensure the canvas resizes correctly on device orientation changes. ### 2. Audio Requirements * **BGM:** A high-energy, driving Electronic/Trance track with a steady beat to match the speed of flight. The visual intensity (e.g., light pulses) should ideally sync with the beat. * **SFX:** * *Engine/Wind:* A continuous "whooshing" white noise that increases in pitch/volume as the game speed increases. * *Steering:* A subtle "swoosh" sound when banking left or right. * *Crash:* A sharp, jarring explosion or glass-breaking sound when the player hits a wall. * *UI:* Clean "blip" sounds for starting and restarting the game. ### 3. Gameplay Loop * **Core Mechanic:** Infinite runner inside a 3D tube. The camera moves forward automatically at an increasing speed. * **Control Logic:** The player must steer the Arrow left or right to follow the curvature of the tunnel and avoid hitting the walls or rising obstacles. * **Fail State:** Instant death upon collision with any wall or obstacle. Trigger a particle explosion effect and shake the camera slightly before showing the "Game Over" screen. * **Scoring:** Score is based on distance traveled. Display the score at the top center of the screen. High score should be saved locally. ### 4. Mobile Controls & Interaction * **Input Method:** **Split-Screen Touch Zones**. * Tap/Hold **Left half** of the screen to steer/bank Left. * Tap/Hold **Right half** of the screen to steer/bank Right. * Releasing touch centers the ship slightly (auto-stabilize). * **Orientation:** Force **Landscape** mode for the best field of view (FOV) inside the tunnel. * **UI Design:** * A large, semi-transparent "TAP TO START" overlay. * On Game Over: A large, thumb-friendly "RETRY" button (minimum 60x60px hit area). * Ensure `user-select: none` and `touch-action: none` are applied to the CSS to prevent accidental scrolling or zooming on mobile browsers. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

DTunnel is a thrilling flying arcade game that combines music, reflexes, and precision flying. As you pilot your arrow through an ever-changing tunnel system, electronic music drives the pace and intensity of your journey. The tunnel undulates, turns, and twists in mesmerizing patterns, creating a hypnotic flight experience that challenges your concentration and reaction time.

This sports-flying hybrid game offers a unique blend of musical rhythm and aerial navigation, making each playthrough an immersive audiovisual adventure. The simple yet addictive gameplay mechanics ensure that players of all skill levels can enjoy the experience while still providing enough challenge for seasoned gamers.

Core Features

Musical Flight Experience

DTunnel synchronizes your flight journey with pulsating electronic music, creating an immersive experience where sound and visuals work together. The music not only enhances the atmosphere but also helps guide your timing and rhythm as you navigate through the challenging tunnel sections.

Dynamic Tunnel System

Each tunnel segment presents unique challenges with varying widths, curves, and obstacles. The tunnel walls undulate and shift, requiring constant attention and quick reflexes to avoid collision. No two flights are exactly the same, ensuring high replay value.

Precision Control Mechanics

The game features responsive arrow key controls that allow for precise navigation. Master the art of smooth flight movements to maintain your position within the safe zone while the tunnel transforms around you.

All-Ages Entertainment

With its content rating suitable for all ages, DTunnel provides family-friendly entertainment that's both accessible and challenging. The straightforward concept combined with progressive difficulty makes it perfect for casual gaming sessions.

Gameplay Mechanics

The core gameplay revolves around maintaining your arrow's position within the tunnel boundaries. As you fly forward automatically, the tunnel walls constantly shift and change shape, requiring you to adjust your horizontal position continuously. Contact with the tunnel walls results in immediate explosion, ending your flight and requiring a restart.

Success in DTunnel depends on developing rhythm, anticipation, and smooth control inputs. The electronic soundtrack provides audio cues that experienced players can use to predict upcoming tunnel changes, adding a musical element to the navigation challenge.

Operation Guide

Basic Controls: - LEFT ARROW KEY : Move your arrow to the left - RIGHT ARROW KEY : Move your arrow to the right - Objective : Stay within the tunnel boundaries at all costs - Failure Condition : Touching tunnel walls causes instant explosion

Pro Tips: - Listen to the music rhythm for timing cues - Make smooth, gradual movements rather than sharp jerks - Anticipate tunnel curves by watching the path ahead - Practice maintaining center position during straight sections - Use peripheral vision to track both tunnel walls simultaneously

Why Play DTunnel

DTunnel offers a perfect blend of simplicity and challenge that makes it highly addictive. The combination of electronic music and flying mechanics creates a unique gaming experience that stands out from typical arcade games. Whether you're looking for a quick gaming break or an extended session to master the tunnels, DTunnel provides engaging entertainment.

The game's browser-based format means you can play instantly without downloads or installations. Its all-ages rating makes it suitable for family gaming, while the challenging gameplay keeps experienced players coming back for more. The musical component adds an extra dimension that transforms simple navigation into an artistic experience.

For fans of flying games, music games, or arcade classics, DTunnel represents the perfect intersection of these genres, delivering a memorable gaming experience that's both relaxing and exciting.

Frequently Asked Questions (FAQ)