X Trench Run

Seele01-Flash
By
X Trench Run is an exhilarating fast-paced arcade shooter where you pilot a space fighter through dangerous trenches, avoiding obstacles while destroying enemies and challenging bosses.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**X Trench Run - Sci-Fi Canyon Shooter**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Low-poly Sci-Fi aesthetic. The world consists of an endless, procedurally generated "trench" or canyon. The walls and floor should use metallic textures with neon accents (cyan and orange) to create a high-contrast, futuristic look. * **Player Model:** A sleek, low-poly space fighter jet (similar to an X-Wing or Viper). It should have glowing engine thrusters (particle emitters) at the rear leaving a trail. * **Environment Generation:** The trench is an infinite runner style tunnel. Obstacles include: * **Static Walls:** Pillars rising from the ground or protruding from the side walls. * **Rotating Gates:** Large spinning mechanical rings with gaps the player must fly through. * **Turrets:** Simple geometric blocky structures that fire slow-moving red projectiles. * **Visual Effects (VFX):** * Explosions using simple particle bursts (orange/yellow) when enemies or obstacles are destroyed. * Laser bolts (cyan for player, red for enemies) using elongated glowing mesh geometries. * A speed line effect (overlay or particle system) to simulate high velocity. * **Optimization:** Use InstancedMesh for repetitive trench segments and obstacles to maintain 60 FPS on mobile devices. Keep geometry simple (box/cylinder primitives). ### 2. Audio Requirements * **BGM:** High-energy, driving Synthwave or electronic rock track with a fast tempo (140+ BPM) to match the speed of the flight. It should feel tense and heroic. * **Sound Effects (SFX):** * **Engine Hum:** A constant, low-frequency drone that pitches up slightly when steering. * **Laser Fire:** punchy, retro "pew-pew" sounds. * **Explosions:** Crunchy, distorted noise bursts. * **Warning:** A rhythmic "beep-beep" alarm when a Boss approaches or health is low. * **UI:** Digital chirps for button presses. ### 3. Gameplay Loop * **Core Mechanics:** The player flies forward automatically at a constant high speed. The goal is to survive as long as possible while racking up a high score. * **Movement:** The player can move up, down, left, and right within the confines of the trench. * **Combat:** The player fires automatically or manually. Hitting enemies and destructible obstacles grants points. * **Obstacle Course:** The trench gets progressively harder (narrower gaps, faster speed, more enemies). * **Boss Encounters:** Every 60 seconds, the trench opens up into a wider arena where a large "Boss Ship" appears. It has distinct weak points (glowing red cores) that must be destroyed while dodging bullet patterns. * **Game Over:** Crashing into a wall/obstacle or running out of health (shield depletion) ends the run. ### 4. Mobile Controls & Interaction * **Screen Orientation:** **Landscape Mode** is mandatory for a wide field of view. * **Control Scheme:** * **Left Half of Screen:** Invisible Virtual Joystick (or D-pad logic). Dragging anywhere on the left side moves the ship relative to the center. Movement should be snappy but have slight inertia (smooth lerp) to feel like a spaceship. * **Right Half of Screen:** Tap and hold to fire weapons (Machine Gun). * **UI Layout:** * **Top Left:** Score counter (large, readable font). * **Top Right:** Pause button (min 44x44px touch area). * **Top Center:** Health/Shield bar. * **Haptic Feedback:** Trigger a short vibration (using `navigator.vibrate`) when the player shoots, takes damage, or destroys an enemy. * **Camera:** A third-person chase camera that follows the ship slightly loosely. When the ship banks left/right, the camera should tilt slightly (Dutch angle) to enhance the feeling of speed and motion. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

X Trench Run is an action-packed space arcade shooter that delivers non-stop thrills and excitement. In this fast-paced game, you take control of a powerful space fighter navigating through treacherous space trenches filled with obstacles, enemies, and formidable bosses. The game combines classic arcade shooting mechanics with modern smooth gameplay, creating an addictive experience that keeps players coming back for more.

Core Features

Fast-Paced Arcade Action

Experience intense, high-speed gameplay that tests your reflexes and piloting skills. Every second counts as you navigate through increasingly challenging trench environments while maintaining constant vigilance against incoming threats.

Dynamic Obstacle Navigation

Master the art of precision flying as you weave through complex trench systems. The game features varied obstacle patterns that require quick thinking and expert maneuvering to overcome safely.

Epic Boss Battles

Face off against powerful boss enemies that will test all your combat skills. Each boss presents unique attack patterns and requires different strategies to defeat, adding depth and replay value to your gaming experience.

Free Browser Gaming

Enjoy complete access to all game features without any cost. No downloads, installations, or subscriptions required - simply open your browser and start playing immediately.

Cross-Platform Compatibility

Seamlessly play on desktop computers, tablets, and mobile devices. The game automatically adapts to your screen size and input method for optimal performance across all platforms.

Gameplay Mechanics

Combat System

Engage enemies using your space fighter's advanced weaponry. Time your shots carefully and maintain steady aim while simultaneously avoiding return fire and environmental hazards.

Progressive Difficulty

The game features escalating challenge levels that gradually introduce new enemy types, obstacle configurations, and boss encounters. This progression system ensures both newcomers and experienced players find appropriate challenges.

Scoring and Achievements

Earn points by destroying enemies, avoiding damage, and completing levels efficiently. Compete for high scores and unlock achievements that showcase your piloting prowess.

Operation Guide

Movement Controls

  • WASD Keys or Arrow Keys : Control your space fighter's directional movement
  • Smooth Navigation : Use precise inputs to thread through tight spaces and avoid collisions

Combat Controls

  • Spacebar or Left Mouse Button : Fire your primary weapons
  • Continuous Fire : Hold down the fire button for sustained attacks against multiple enemies

Strategic Tips

  • Prioritize avoiding obstacles over destroying enemies when necessary
  • Learn enemy attack patterns to predict and counter their moves
  • Conserve ammunition during calm moments and unleash full firepower during boss encounters
  • Use the full width of the trench to maximize maneuvering options

Why Play X Trench Run

X Trench Run offers the perfect blend of classic arcade action and modern gaming convenience. Whether you're looking for a quick gaming session during a break or an extended play experience, this game delivers consistent entertainment. The combination of skill-based gameplay, progressive challenges, and instant accessibility makes it ideal for both casual gamers and arcade enthusiasts.

The game's intuitive controls ensure anyone can start playing immediately, while the depth of gameplay mechanics provides long-term engagement. With no financial barriers and universal browser compatibility, X Trench Run represents the best of free online gaming.

Frequently Asked Questions (FAQ)