Temple Run - Original Endless Runner Game

Seele01-Flash
By
Temple Run is the original endless runner that started it all! Steal the cursed idol and escape through ancient temples while dodging monsters and obstacles in this thrilling adventure.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Temple Run (Endless Jungle Runner)". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Low-poly 3D "Ancient Jungle" aesthetic. Use earthy tones (browns, greens, greys) for the environment and bright gold for collectibles. * **Player Character**: A low-poly explorer model (Indiana Jones archetype) with a running animation. * **The Path**: Procedurally generated, endless stone pathway suspended over a swamp or void. It must spawn distinct "Tile Modules": * *Straight Path*: Standard running surface. * *Corner Turn*: A 90-degree turn (Left or Right) that requires a hard swipe. * *Gap/Broken Bridge*: Requires jumping. * *Low Obstacle (Tree Root/Fire)*: Requires jumping. * *High Obstacle (Stone Arch/Branch)*: Requires sliding/ducking. * **Atmosphere**: Use dense "Distance Fog" (dark green or grey) to hide the end of the world and improve mobile performance by limiting draw calls. * **Optimization**: Implement **Object Pooling** for path tiles and coins to ensure 60fps on mobile browsers. Do not create new geometries constantly; reuse them. ### 2. Audio Requirements * **BGM**: Fast-paced, rhythmic tribal percussion (drums, bongos) that loops seamlessly to create tension. * **SFX**: * *Jump*: A "Whoosh" or grunt sound. * *Slide*: Gravel crunching sound. * *Coin*: High-pitched metallic "Ching" sound. * *Turn*: A distinct swoosh to confirm input. * *Crash/Death*: A heavy impact thud or a monster screech. * *Monster*: Subtle growling that gets louder if the player stumbles (indicating the enemy is close). ### 3. Gameplay Loop * **Core Mechanics**: The character automatically runs forward, accelerating slowly over time. The camera follows in a third-person "chase" view. * **Lane System vs. Turning**: Unlike lane-based runners, this game features **90-degree turns**. If the player reaches a T-junction or corner and fails to swipe, they run off the edge and die. * **Obstacle Logic**: * *Trip*: Hitting a small obstacle slows the player down (camera zooms in, monster sounds get louder). Hitting a second one immediately after results in being caught. * *Hard Collision*: Hitting a wall or falling into a gap results in instant Game Over. * **Scoring**: Score is based on Distance Run (meters) + (Coin Count * Multiplier). * **Power-ups**: Randomly spawn a "Magnet" (attracts coins) or "Boost" (invincibility and speed) effect. ### 4. Mobile Controls & Interaction * **Gesture Recognition (Touch Surface)**: * **Swipe Up**: Jump (over gaps/roots). * **Swipe Down**: Slide (under arches/fire). * **Swipe Left/Right**: Sharp 90-degree turn at corners. * **Device Tilt (or Touch Drag)**: Since `DeviceOrientation` can be tricky in web browsers due to permissions, implement a **Screen Tilt simulation**: Dragging/Holding left or right on the bottom of the screen moves the character laterally *within* the path to collect coins. * **Orientation**: **Portrait Mode** (Vertical) is mandatory for this genre to maximize the view of the path ahead. * **UI/UX**: * Score display at the top right. * A pause button in the top left (minimum touch target 44x44px). * **Game Over Screen**: A large, centered "Play Again" button and "Save Score" option. * **Haptic Feedback**: Trigger `navigator.vibrate(50)` on collisions or collecting power-ups for tactile feedback. 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 heart-pounding adventure, you play as a daring explorer who steals a cursed idol from an ancient temple, triggering a relentless chase by demonic monkeys. Your mission is simple: run for your life and see how far you can go in this never-ending temple escape.

The game features stunning 3D graphics that bring the mysterious temple environments to life. Navigate through treacherous temple corridors, cross dangerous bridges, and sprint through lush jungle paths while collecting precious coins and power-ups along the way.

Core Features

Endless Running Adventure

Experience the ultimate endless runner where no two runs are exactly the same. The procedurally generated temple layouts ensure fresh challenges every time you play, keeping the excitement alive for hours.

Dynamic Obstacle System

Master the art of survival as you encounter various obstacles: - Sharp turns that require split-second timing - Broken bridge sections demanding perfect jumps - Fire traps and spike pits to avoid - Tree roots and hanging vines to duck under - Narrow ledges requiring precise navigation

Power-Up Collection System

Gather coins during your runs to unlock game-changing power-ups: - Coin Magnet : Automatically attracts nearby coins - Speed Boost : Increases running speed for faster progression - Shield Protection : Provides temporary invincibility against obstacles - Score Multiplier : Doubles your points for higher scores

Character Abilities and Upgrades

Unlock and upgrade powerful abilities that enhance your running performance: - Extended coin magnet duration - Faster running speed - Longer shield protection - Higher coin values - Improved power-up effectiveness

Gameplay Mechanics

Temple Run combines simple controls with challenging gameplay that's easy to learn but difficult to master. The game tests your reflexes, timing, and decision-making skills as the pace gradually increases.

Scoring and Progression

Your score increases based on distance traveled and coins collected. Complete daily challenges and objectives to earn bonus coins and unlock new content. The further you run, the faster the game becomes, creating an intense escalation of difficulty.

Operation Guide

Temple Run features intuitive controls designed for both desktop and mobile play:

  • WASD Keys or Arrow Keys : Navigate left and right around corners
  • Spacebar : Jump over gaps and obstacles
  • Swipe Gestures (on mobile): Swipe left/right to turn, up to jump, down to slide
  • Mouse : Navigate menus and select options

Pro Tips for Better Performance

  • Practice timing : Learn the rhythm of obstacles to improve reaction time
  • Focus ahead : Always look forward to anticipate upcoming challenges
  • Collect strategically : Prioritize power-ups over coins when facing difficult sections
  • Use abilities wisely : Save powerful abilities for challenging obstacle sequences

Why Play Temple Run

The Original Endless Runner Experience

Temple Run isn't just a game—it's a gaming phenomenon that defined an entire genre. Experience the authentic endless runner that inspired countless imitators and sequels.

Perfect for All Skill Levels

Whether you're a casual gamer looking for quick entertainment or a dedicated player aiming for high scores, Temple Run offers the perfect balance of accessibility and challenge.

Completely Free Entertainment

Enjoy the full Temple Run experience without spending a penny. No hidden fees, no pay-to-win mechanics—just pure, skill-based endless running fun.

Cross-Platform Compatibility

Play seamlessly across all your devices. Start a run on your computer and continue on your mobile device, or vice versa. The game works perfectly on desktops, laptops, tablets, and smartphones.

Stress Relief and Quick Entertainment

Perfect for short gaming sessions or extended play. Temple Run provides an excellent way to unwind, challenge yourself, and escape from daily stress through immersive temple exploration.

Frequently Asked Questions (FAQ)