Dino Game - Chrome T-Rex Runner

Seele01-Flash
By
Dino Game is the iconic endless runner featuring a pixelated T-Rex that has entertained over 270 million players monthly. Originally Google Chrome's offline easter egg, now playable anytime online for free.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Dino Runner 3D Reimagined**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: "Voxel-Art" / 2.5D Aesthetic. Maintain the classic monochromatic (black/dark grey on white) color scheme, but render the Dino, Cacti, and Ground as 3D voxel objects (cubes) rather than flat sprites. * **Camera**: Use an **Orthographic Camera** to simulate the classic flat 2D look while allowing for 3D shadows and depth. The view should be side-scrolling. * **Assets**: * **The Dino**: A simple rig made of cubes. Basic animation for running (legs moving back and forth) and a static "crouch" pose if implemented. * **Obstacles**: Voxel Cacti of varying heights (single, double, triple clusters) and Voxel Pterodactyls (flying low, mid, or high). * **Environment**: An infinite scrolling ground plane with scattered "pebbles" (single cubes). A simple cloud system in the background with parallax scrolling (moving slower than the foreground). * **Mobile Optimization**: Use `THREE.InstancedMesh` for the ground segments and cactus clusters to reduce draw calls. Texture resolution should be low (pixel art style), keeping memory usage minimal. ### 2. Audio Requirements * **BGM (Background Music)**: A minimalist, rhythmic 8-bit chiptune track that simulates the sound of running (fast-paced high-hats). It should start only when the player first taps the screen. * **Sound Effects (SFX)**: * **Jump**: A classic retro "Bloop" or rising square wave sound. * **Score Milestone**: A high-pitched "Ding-Ding" every 100 points. * **Game Over**: A low-frequency "Crunch" or "Glitch" noise, followed by a descending tone. * **UI Interaction**: A crisp "Click" sound for the restart button. ### 3. Gameplay Loop * **Core Mechanics**: Auto-runner. The game speed (world scroll speed) starts slow and incrementally increases every 10 seconds. * **Player Action**: The Dino runs automatically. The player's only input is to Jump (short tap) or Crouch/Duck (long press - optional, or just focus on jumping). * **Collision**: Implement AABB (Axis-Aligned Bounding Box) collision detection between the Dino and Obstacles. * **Fail State**: Upon collision, the game freezes, a "Game Over" text appears, and the restart button becomes visible. * **Scoring**: Score increases based on distance traveled (deltaTime). High score is saved to `localStorage`. ### 4. Mobile Controls & Interaction * **Touch Controls**: * **Tap anywhere on screen**: Trigger **Jump**. The jump physics should be "snappy" (strong gravity) so the player lands quickly to prepare for the next obstacle. * **Tap to Start/Restart**: The initial screen and Game Over screen should accept a tap anywhere to begin. * **Screen Orientation**: Design primarily for **Landscape Mode** to allow the player to see obstacles coming from the right side. However, the camera zoom should adapt responsively if opened in Portrait mode. * **Haptic & Visual Feedback**: * Trigger `window.navigator.vibrate(200)` on collision/death. * Implement a slight "Camera Shake" effect on death. * Invert the screen colors (White on Black) briefly when reaching score milestones (Day/Night cycle simulation). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Dino Game , also known as Chrome Dino or T-Rex Game, is one of the most beloved endless runner games ever created. This simple yet addictive pixel-art game features a cute T-Rex dinosaur running through a desert landscape, jumping over cacti and avoiding obstacles. Originally designed as Google Chrome's offline entertainment, it has become a global phenomenon with over 270 million players enjoying it every month.

The game's minimalist black and white design and straightforward mechanics make it instantly accessible to players of all ages. Despite its simple appearance, Dino Game offers surprisingly engaging gameplay that can keep you entertained for hours.

Core Features

Classic Endless Runner Gameplay

Experience the pure essence of endless running games. The T-Rex automatically runs forward while you focus solely on timing your jumps perfectly to avoid obstacles. The game gradually increases in speed, making each session more challenging as you progress.

Pixel-Perfect Retro Graphics

Enjoy the charming 8-bit style graphics that evoke nostalgia for classic arcade games. The monochrome color scheme and pixelated dinosaur design create a timeless aesthetic that never gets old.

Progressive Difficulty System

The game starts at a comfortable pace but continuously accelerates, testing your reflexes and timing skills. As you achieve higher scores, obstacles become more frequent and the running speed increases significantly.

Cross-Platform Compatibility

Play seamlessly across all devices - desktop computers, laptops, tablets, and smartphones. The game works perfectly in any modern web browser without requiring downloads or installations.

Unlimited Replayability

With randomly generated obstacle patterns and an endless running format, no two games are exactly alike. The simple "try again" mechanic makes it easy to jump back in after each attempt.

How to Play

Basic Controls

  • Desktop : Press the Spacebar to make the T-Rex jump
  • Mobile/Tablet : Tap the screen to jump
  • Start : Press Spacebar or tap the dinosaur to begin running

Gameplay Mechanics

Your T-Rex runs automatically from left to right. Your only job is to time your jumps perfectly to clear cacti and other desert obstacles. The game ends when you hit an obstacle, but you can instantly restart by pressing the spacebar or tapping again.

Scoring System

Points accumulate automatically based on distance traveled. The longer you survive, the higher your score. The maximum possible score is 99,999 points, after which the score resets to zero.

Tips for Success

  • Watch the rhythm : Obstacles often appear in patterns
  • Don't jump too early : Wait until the last moment for optimal timing
  • Stay calm : As speed increases, maintain steady reflexes
  • Practice makes perfect : Each attempt improves your reaction time

Why Play Dino Game

Perfect for Quick Breaks

With its instant-start gameplay and short session format, Dino Game is ideal for brief entertainment breaks. Whether you have 30 seconds or 30 minutes, you can enjoy a quick gaming session.

No Internet Required

Originally designed for offline play, you can enjoy Dino Game even without an internet connection. It's the perfect companion for flights, commutes, or areas with poor connectivity.

Suitable for All Ages

The simple controls and family-friendly content make it appropriate for children, while the increasing difficulty provides enough challenge for adult players seeking to beat their high scores.

Stress-Free Gaming

Unlike complex games with multiple mechanics, Dino Game offers pure, uncomplicated fun. There are no complicated rules, storylines, or strategies to learn - just jump and enjoy.

Nostalgic Appeal

For many internet users, Dino Game represents a shared cultural experience. Playing it brings back memories of internet outages and the joy of discovering this hidden easter egg.

Frequently Asked Questions (FAQ)