Temple Run - The Original Endless Runner

Seele01-Flash
By
Temple Run is the original endless runner that started the mobile gaming craze. Steal the cursed idol and escape through ancient temples while dodging deadly obstacles and supernatural monsters.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Endless Temple Escape". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Create a 3D endless runner environment with an "Ancient Jungle Ruins" aesthetic. Use a warm, golden, and earthy color palette (mossy greens, stone grays, sunset oranges) similar to the iconic golden idol provided. * **Player Character:** A low-poly, athletic adventurer model (seen from a third-person, over-the-shoulder perspective). The character should have basic animations for running, jumping, and sliding. * **The Path:** Generate a dynamic, segmented stone pathway that spawns endlessly. The path should feature textures of cracked stone and moss. * **Environment Details:** * **Sides:** Dense jungle vegetation (low-poly trees/bushes) and swampy water on the sides to create a "corridor" feel. * **Obstacles:** * **Low obstacles:** Tree roots or fire traps (require jumping). * **High obstacles:** Low-hanging stone arches or branches (require sliding/ducking). * **Gaps:** Broken bridge sections (require jumping). * **Corners:** 90-degree turns (require swiping left/right). * **Collectibles:** Floating golden coins (diamond or square shape) rotating in the air, arranged in lines or curves. * **Lighting:** Atmospheric lighting with a slight fog effect to hide the asset generation horizon. * **Performance Optimization:** Use object pooling for path segments, coins, and obstacles to maintain 60FPS on mobile browsers. Use simple geometries for environment decoration. ### 2. Audio Requirements * **BGM:** A tribal, rhythmic drum-heavy track with bongo drums and ambient jungle sounds (birds, crickets) to build tension. The tempo should slightly increase as the player runs faster. * **Sound Effects (SFX):** * **Footsteps:** Rapid stone-tapping sounds synced with animation. * **Jump:** A "whoosh" or exertion grunt. * **Coin Collect:** A satisfying high-pitched "ching" or magical chime. * **Crash/Game Over:** A heavy thud followed by a screeching monkey/monster sound indicating capture. * **Swipe:** A subtle wind sound for turning. ### 3. Gameplay Loop * **Core Mechanic:** The character runs automatically forward. Speed gradually increases over time. * **Objective:** Survive as long as possible while collecting coins for a high score. * **The "Monster":** Although not always visible, a "shadow" or sound of pursuing demon monkeys should get louder if the player stumbles (hits a small obstacle without dying). * **Power-ups (Optional but recommended):** * **Magnet:** Automatically attracts coins. * **Shield:** Protects against one collision. * **Game Over Conditions:** * Falling into a gap. * Running directly into a large obstacle (wall/tree). * Missing a turn and running off the path. * **Scoring:** Display distance (meters) and coin count in real-time. ### 4. Mobile Controls & Interaction * **Control Scheme (Touch Gestures):** Implement a robust swipe detection system (Hammer.js or custom touch event listeners). * **Swipe Up:** Jump. * **Swipe Down:** Slide/Duck. * **Swipe Left/Right:** Quick lane change or 90-degree turn at corners. * **Tilt (DeviceOrientationEvent) or Drag:** Move character slightly left/right within the lane to collect coins (optional, but classic to the genre). *If tilt is too complex, map horizontal drag to lane positioning.* * **Screen Orientation:** Portrait mode (Vertical) is mandatory for one-handed play. * **UI/HUD:** * **Top Left:** Coin Count (with icon). * **Top Right:** Distance/Score. * **Pause Button:** Top corner (at least 44x44px touch target). * **Game Over Screen:** A "Play Again" button centrally located and large enough for easy tapping. * **Feedback:** Add simple camera shake on impact or stumbling. Visual flash when collecting a power-up. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Temple Run

Temple Run is the legendary endless runner game that revolutionized mobile gaming and created an entire genre. In this thrilling adventure, you play as a daring explorer who steals a cursed idol from an ancient temple, triggering a relentless chase by demonic monkey guardians. Your mission is simple yet challenging: run as far as possible while navigating through treacherous temple corridors and jungle paths.

This iconic 3D running game combines fast-paced action with intuitive controls, making it accessible to players of all ages while providing endless replayability. With its stunning visuals, atmospheric sound effects, and addictive gameplay loop, Temple Run has captivated millions of players worldwide.

Core Features

Endless Adventure

Experience unlimited gameplay with procedurally generated temple layouts that ensure every run feels fresh and exciting. The game never truly ends - it's all about beating your personal best and climbing the global leaderboards.

Intuitive Touch Controls

Master simple yet responsive controls: swipe to turn, swipe up to jump over obstacles, swipe down to slide under barriers, and tilt your device to collect coins along narrow ledges. The controls are perfectly optimized for both touch devices and keyboard play.

Power-ups and Abilities

Collect coins during your escape to unlock powerful abilities: - Coin Magnet : Automatically attracts nearby coins - Invisibility : Pass through obstacles safely for a limited time - Boost : Gain incredible speed to outrun the demons - 2x Multiplier : Double your score for maximum points

Character Progression

Upgrade your runner's abilities to extend your survival chances. Increase power-up duration, boost coin collection rates, and enhance your overall performance through the upgrade system.

Gameplay Mechanics

The core gameplay revolves around three main actions: running, jumping, and sliding. As you sprint through the ancient temple, you'll encounter various obstacles including broken bridge sections, fire traps, tree roots, and narrow passages. Quick reflexes and pattern recognition are key to achieving high scores.

The demon monkeys behind you never stop chasing, creating constant tension and urgency. If you hit an obstacle or fall off the path, they'll catch up and end your run. This creates a perfect balance between accessibility and challenge that keeps players coming back for "just one more run."

Operation Guide

Desktop Controls: - WASD Keys or Arrow Keys : Navigate left, right, forward, and backward - Spacebar : Jump over obstacles and gaps - Mouse : Control camera angle and menu navigation

Mobile Controls: - Swipe Left/Right : Turn at corners and change lanes - Swipe Up : Jump over barriers and gaps - Swipe Down : Slide under low obstacles - Tilt Device : Collect coins along ledges and narrow paths

The game starts automatically when you begin running. Your character will continuously move forward, and it's your job to guide them safely through the temple's dangers.

Why Play Temple Run

Temple Run offers the perfect blend of simplicity and excitement that makes it ideal for both casual gaming sessions and competitive score chasing. The game's "easy to learn, hard to master" philosophy ensures that anyone can start playing immediately, while the endless nature and scoring system provide long-term engagement.

The game is completely free with no hidden costs or pay-to-win mechanics. All power-ups and upgrades can be earned through gameplay, making it a fair and enjoyable experience for everyone. Whether you have 2 minutes or 2 hours, Temple Run adapts to your schedule with its pick-up-and-play design.

With cross-platform compatibility, you can enjoy the same thrilling experience on your computer, smartphone, or tablet. The game runs smoothly in web browsers without requiring downloads or installations, making it instantly accessible whenever you want to play.

Frequently Asked Questions (FAQ)