Retro Rex - Dinosaur Rampage Game

Seele01-Flash
By
Retro Rex is a thrilling action-platformer where you control a rampaging T-Rex dinosaur on a tropical island. Destroy buildings, eat humans, and unleash chaos in beautiful pixel art style with multiple unlockable skins and trophies.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Retro Rex: Pocket Rampage**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: 2.5D Voxel/Pixel Art style. Use `THREE.BoxGeometry` to construct characters and environments to mimic a 3D pixel art aesthetic (MagicaVoxel style). Textures must use `THREE.NearestFilter` to maintain the crisp, retro look without blurring. * **Camera**: Use an **Orthographic Camera** to flatten the perspective and enforce the retro arcade feel. The camera should smoothly follow the player (Rex) on the X-axis. * **Player Character (Rex)**: A bright green, blocky T-Rex model. Must include simple animations: Idle (breathing), Run (bobbing head/tail), Jump, and Attack (mouth opening wide). * **Environment**: A tropical setting that transitions into a cityscape. * **Foreground**: Destructible buildings (carnival stalls, skyscrapers) made of stacked distinct blocks. When destroyed, they should shatter into physics-based debris. * **Background**: Parallax scrolling layers (distant volcano, blue sky, clouds). * **Mobile Optimization**: Use `InstancedMesh` for building blocks and debris particles to ensure 60FPS on mobile devices. ### 2. Audio Requirements * **BGM**: High-energy, fast-paced **8-bit Chiptune Rock/Metal**. Think crunchy square waves and fast drum loops. * **Sound Effects (SFX)**: * **Movement**: Heavy, bass-heavy "thud" sounds for T-Rex footsteps. * **Action**: A digitized "Crunch" sound for eating civilians. A synthesized "Roar" for the special move. * **Destruction**: 8-bit explosion noises when buildings collapse. * **UI**: High-pitched "blip" sounds for button presses. ### 3. Gameplay Loop * **Core Mechanics**: Infinite runner/Side-scroller hybrid. The player moves right, destroying obstacles and managing health/hunger. * **Controls Logic**: * **Bite**: Short-range attack to destroy obstacles/enemies. * **Eat**: Only works on "Food" entities (civilians) to restore Health. * **Roar/Flame**: Area-of-effect attack (requires cooldown or mana bar). * **Enemies**: Static obstacles (Spikes, Barricades) and Mobile enemies (Soldiers shooting pixel bullets, Helicopters). * **Win/Loss**: * **Loss**: Health reaches 0 (from enemy attacks or hunger). * **Win**: Reach the level end (Volcano entrance). * **Feedback**: Screen shake (camera jitter) is mandatory when destroying large buildings or roaring. ### 4. Mobile Controls & Interaction * **Screen Orientation**: **Landscape Mode** is required for the side-scrolling view. * **Touch Controls**: * **Left Side**: A dynamic **Virtual Joystick** or D-Pad for movement (Left/Right) and aiming. * **Right Side**: A diamond cluster of circular action buttons (CSS styled, minimum 60px diameter for hit testing): * **Bottom (Big)**: Jump (A). * **Left (Medium)**: Bite/Attack (B). * **Right (Medium)**: Eat (X). * **Top (Small)**: Special/Roar (Y). * **UI Layout**: Health bar and Score counter pinned to the top-left (safe area). Pause button top-right. * **Haptic Feedback**: Trigger `navigator.vibrate(50)` on taking damage and `navigator.vibrate(200)` when destroying a building. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Retro Rex is an explosive action-platform game that puts you in control of a furious T-Rex dinosaur on an unsuspecting tropical island. This retro-styled pixel art adventure combines classic arcade gameplay with modern destruction mechanics, offering an incredibly satisfying rampage experience that's completely free to play.

In this adrenaline-pumping dinosaur simulator, you'll start your reign of terror at a peaceful carnival before spreading chaos across an entire city, smashing through military bases, and ultimately leaping into an active volcano. The game's charming 16-bit pixel art style brings the prehistoric mayhem to life with vibrant colors and smooth animations.

Core Features

Massive Destruction System

Experience the ultimate power fantasy as your T-Rex demolishes everything in sight. Crush buildings, vehicles, and structures with realistic physics-based destruction. Every swing of your massive tail and stomp of your powerful feet creates satisfying carnage across multiple diverse environments.

Progressive Rampage Campaign

Your dinosaur adventure spans multiple exciting locations: - Carnival Chaos : Start small by terrorizing a local fair - City Destruction : Rampage through urban environments - Military Base Assault : Face armed resistance and heavy machinery - Volcanic Finale : Epic climax inside an active volcano

Unlockable Content & Progression

Collect trophies and unlock various dinosaur skins to customize your T-Rex's appearance. Each achievement adds replay value and gives you new goals to pursue during your destructive rampages.

Special Abilities & Power-ups

  • Devastating Bite : Chomp through obstacles and enemies
  • Human Consumption : Eat fleeing humans to restore health
  • Terrifying Roar : Intimidate enemies and break objects
  • Flame Breath : Unlock this powerful ranged attack ability

Gameplay Mechanics

Retro Rex combines classic platformer controls with unique dinosaur abilities. Navigate through increasingly challenging levels while maximizing destruction and avoiding military countermeasures. The game rewards aggressive play - the more chaos you create, the higher your score.

Strategic Elements

While the core gameplay focuses on destruction, players must also consider: - Health management through eating humans - Timing flame breath attacks effectively - Navigating increasingly dangerous military resistance - Collecting all trophies for 100% completion

Operation Guide

Movement Controls: - Left/Right Arrow Keys or A/D : Move your T-Rex left and right - W Key , Up Arrow , or Spacebar : Jump over obstacles

Action Controls: - Z Key : Bite attack to destroy objects and enemies - X Key : Eat humans and small objects for health - C Key : Roar to intimidate and break fragile structures - V Key : Flame breath power-up (available after unlocking) - Mouse : Navigate menus and interface

The controls are intuitive and responsive, making it easy for players of all skill levels to enjoy the dinosaur rampage experience immediately.

Platform Compatibility

Retro Rex offers excellent cross-platform support: - Desktop : Full compatibility with Windows, Mac, and Linux browsers - Mobile : Optimized for iOS and Android smartphones and tablets - Web Browser : No downloads required - play instantly in any modern browser - Touch Controls : Mobile devices feature intuitive touch-based controls

Why Play Retro Rex

Perfect Stress Relief : There's something incredibly satisfying about controlling a massive dinosaur and destroying everything in sight. It's the ultimate stress-relief game after a long day.

Nostalgic Pixel Art : The beautiful retro graphics will appeal to fans of classic 16-bit games while still feeling fresh and modern.

Easy to Learn, Hard to Master : Simple controls make the game accessible, but collecting all trophies and achieving perfect destruction requires skill and strategy.

Free Entertainment : Enjoy hours of dinosaur mayhem without spending a penny. No hidden costs, no pay-to-win mechanics - just pure prehistoric fun.

Quick Gaming Sessions : Perfect for short gaming breaks or extended rampage sessions, depending on your available time.

Whether you're a fan of action games, retro gaming, or just want to experience the thrill of being an unstoppable dinosaur, Retro Rex delivers an unforgettable gaming experience that keeps players coming back for more destruction.

Frequently Asked Questions (FAQ)