Run - Endless Space Runner Game

Seele01-Flash
By
Run is an addictive space-themed endless runner where you navigate through treacherous corridors, avoiding holes while using gravity-defying wall runs to survive as long as possible.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Infinite Space Tunnel Runner with Gravity Switching**" (inspired by the classic Flash game *Run*). Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Minimalist, high-contrast "Flash game" aesthetic. Use a "Flat Shading" low-poly style. * **The Tunnel:** Generate a procedural tunnel composed of floating square-shaped segments. The tunnel walls/floors should be a bright, neon Cyan color (`#00FFFF` or similar) against a deep black background. * **Holes:** The segments must have random gaps (holes) that the player can fall through. * **Skybox:** A simple black void populated with a particle system of white stars to simulate deep space. * **The Player:** A simple, grey, alien-like blob or a geometric capsule (`CapsuleGeometry`) with two small antennae (optional) to represent the character. * **Performance (Mobile):** Use `BoxGeometry` for all tunnel segments. Reuse geometries and materials to minimize draw calls. Implement a simple "Fog" (black color) at the far end of the tunnel to hide the generation point and save rendering resources. ### 2. Audio Requirements * **BGM:** A fast-paced, driving "Techno" or "Synthwave" track that loops. It should feel energetic and urgent. * **SFX:** * **Jump:** A retro, computerized "blip" or spring sound. * **Gravity Shift:** A "whoosh" or "phasing" sound when the player transitions from the floor to a wall. * **Fall/Death:** A descending pitch "glitch" sound or a fading echo. * **Footsteps:** Subtle rhythmic tapping that speeds up as the game progresses. ### 3. Gameplay Loop * **Core Mechanics:** The player character moves forward automatically at a constant speed that slightly increases over time. The goal is to survive as long as possible. * **Gravity Switching (Crucial):** This is the main mechanic. If the player moves against a side wall (left or right), the game must detect this collision and **rotate the entire camera/world 90 degrees**. The wall now becomes the new "floor," and gravity shifts to match the new surface. * **Obstacles:** The primary obstacles are gaps in the floor/walls. The player must jump over them or run to a adjacent wall to avoid them. * **Fail Condition:** If the player falls through a gap into the black void, the game ends (show a "Game Over" UI with a restart button). * **Scoring:** Score increases based on distance traveled. ### 4. Mobile Controls & Interaction * **Orientation:** Force **Landscape Mode**. * **Touch Controls (Split Screen):** * **Left Side of Screen:** Two large, semi-transparent virtual buttons (Left Arrow, Right Arrow) for lateral movement (strafing). * **Right Side of Screen:** A large "Jump" button (or tap anywhere on the right half to jump). * **Responsiveness:** Movement must be snappy. The camera rotation during gravity shifts should be a smooth `Lerp` animation (approx. 0.3s duration) to prevent motion sickness, but fast enough to keep the flow. * **Feedback:** Add a slight screen shake or visual impulse when the player lands a jump or rotates gravity. Use the `navigator.vibrate` API (20ms) for haptic feedback on button presses. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Game

Run is a thrilling space-themed endless runner game that challenges your reflexes and spatial awareness. Set in mysterious space corridors filled with dangerous holes, this game combines classic running mechanics with innovative gravity-rotating gameplay. The simple yet engaging concept has made it a favorite among casual gamers worldwide.

Core Features

Unique Gravity Mechanics

What sets Run apart from other endless runners is its revolutionary gravity system. When you run into walls, the entire screen rotates, allowing you to run on different surfaces. This mechanic transforms simple corridor navigation into a mind-bending 3D experience where walls become floors and ceilings become pathways.

Endless Challenge

The game features procedurally generated corridors that become increasingly difficult as you progress. Each run presents new hole patterns and obstacles, ensuring that no two gaming sessions are identical. The difficulty curve is perfectly balanced to keep you engaged without becoming frustratingly impossible.

Minimalist Design

Run features clean, geometric graphics that focus your attention on the gameplay. The space-themed aesthetic with contrasting colors makes it easy to spot holes and plan your next move, even during high-speed sections.

Cross-Platform Compatibility

  • Web Browser : Play instantly without downloads on any modern browser
  • Mobile Friendly : Optimized touch controls for smartphones and tablets
  • Multiple Platforms : Available across different devices for seamless gaming

Gameplay Mechanics

The core objective is deceptively simple: run through space corridors while avoiding holes that lead to certain death. However, the game's genius lies in its gravity-rotating mechanics. When you encounter a dead end or want to change your path, running directly into a wall causes the entire playing field to rotate, effectively turning walls into floors.

This creates a three-dimensional puzzle element where you must think ahead about which surface to run on next. Some holes can only be avoided by switching to a different wall, while others require precise timing and quick reflexes.

Operation Guide

Basic Controls

  • Arrow Keys : Use left and right arrow keys to steer your character
  • Spacebar : Press space to jump over smaller gaps and obstacles
  • Wall Running : Simply run directly into walls to rotate the gravity and change surfaces

Advanced Strategies

  • Plan Ahead : Look for holes in your current path and identify which walls you can rotate to
  • Timing Jumps : Some gaps require precise jump timing combined with wall rotation
  • Speed Management : Sometimes slowing down helps you better navigate complex hole patterns
  • Practice Rotation : Master the wall-running mechanic to access all surfaces quickly

Pro Tips for High Scores

  • Study hole patterns to predict safe paths
  • Use wall rotations strategically, not just reactively
  • Practice smooth transitions between different surfaces
  • Stay calm during fast sections - panic leads to mistakes

Why Play This Game

Perfect for Quick Gaming Sessions : Each run typically lasts 2-5 minutes, making it ideal for short breaks or commutes.

Mental Exercise : The 3D spatial thinking required helps improve cognitive flexibility and reaction times.

Stress Relief : The simple, repetitive nature combined with the challenge creates a meditative gaming experience.

No Commitment Required : As a browser game, you can start playing immediately without downloads, accounts, or installations.

Universal Appeal : Easy to learn but difficult to master, appealing to both casual players and competitive gamers seeking high scores.

Addictive Progression : The "just one more try" factor keeps players engaged as they attempt to beat their previous distance records.

Frequently Asked Questions (FAQ)