Treasure Hunter - Underground Mining Adventure

Seele01-Flash
By
Treasure Hunter is an addictive 2D mining adventure where you explore underground depths to collect precious gems, ancient artifacts, and hidden treasures. Perfect for casual gamers who love discovery and exploration.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Treasure Hunter: Deep Dive**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: "Soft Poly" or stylized "Claymation" aesthetic (similar to the reference image). Models should have rounded edges and smooth shading (Gouraud), avoiding harsh pixelation. * **Character**: A cute, chibi-style miner (low-poly) wearing a green helmet with a headlamp. The character should hold a pickaxe. * **Environment (The Mine)**: * Implement a **voxel-based grid system** but rendered with smooth 3D cubes. * **Layers**: Surface (Grass/Dirt) -> Shallow (Brown Earth) -> Deep (Dark Purple Rock) -> Abyss (Black/Obsidian). * **Ores**: Embed glowing low-poly crystals (Purple, Gold, Blue) within specific rock blocks. Use emissive materials so they glow in the dark. * **Performance Optimization (Crucial for Mobile)**: * Use `THREE.InstancedMesh` for the ground/wall blocks to handle thousands of blocks efficiently on mobile GPUs. * Limit dynamic lights. Use one point light attached to the player (the helmet lamp) and simple ambient light. * Implement a fog effect (`THREE.FogExp2`) with a dark purple hue to hide the chunk loading distance and create atmosphere. ### 2. Audio Requirements * **BGM**: A mysterious, rhythmic track using marimbas and bass, evoking a sense of "sneaky exploration." It should loop seamlessly. * **Sound Effects (SFX)**: * **Digging Dirt**: A soft, crumbly "thud" sound. * **Hitting Rock**: A high-pitched metallic "clink." * **Gem Collection**: A magical, shimmering "chime" or "sparkle" sound. * **Jump**: A cartoonish "boing" or air swoosh. * **UI Click**: A wooden "block" click sound. ### 3. Gameplay Loop * **Perspective**: Side-scrolling 2.5D. The camera follows the player but is fixed on the Z-axis, looking at the X-Y plane. * **Core Mechanic**: The player starts at the surface and digs downward. * Moving into a dirt/rock block automatically triggers the "Dig" animation. * The block takes `X` hits to destroy depending on tool strength vs. block hardness. * **Collection**: Destroying ore blocks spawns floating collectible gems that magnetize to the player. * **Resources**: * **Stamina/Fuel**: Every dig action consumes stamina. If it hits zero, the player must return to the surface to recharge. * **Backpack**: Limited inventory space. Player must surface to sell gems and clear space. * **Win/Loss**: * **Loss**: Running out of stamina underground (fainting) loses 50% of current loot. * **Goal**: Reach specific depth milestones (e.g., 100m, 200m) to find "Ancient Artifacts." ### 4. Mobile Controls & Interaction * **Orientation**: **Landscape Mode** is preferred for a wider view of the mining layers. * **Touch Controls**: * **Left Screen Area**: An invisible or semi-transparent **Virtual Joystick** for movement (Left/Right to run, Down to dig down/crouch). * **Right Screen Area**: * **Action Button (Large)**: "Dig/Swing Tool". (48px+ touch target). * **Jump Button (Medium)**: Located slightly above the Action button. * **UI Layout**: * Top Left: Stamina Bar (Green to Red gradient). * Top Right: Inventory Counter (e.g., "5/20 Gems") and Settings Cog. * **Feedback**: * **Haptic**: Trigger `navigator.vibrate(50)` when a block is destroyed. * **Visual**: Screen shake (camera shake) slightly when breaking hard rocks. Particle explosion (cubes) matching the block color upon destruction. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Treasure Hunter is an exciting underground mining adventure that transforms you into a daring explorer on an epic treasure-hunting quest. This captivating 2D casual game combines the thrill of discovery with addictive gameplay mechanics, challenging you to dig deep beneath the earth's surface to uncover incredible riches.

Armed with essential mining tools and unwavering courage, you'll embark on an endless journey of exploration and collection. The game's charming visual style features a brave miner character equipped with a helmet and trusty shovel, ready to face the mysterious underground world filled with sparkling gems and ancient secrets.

Core Features

Endless Underground Exploration

Dive into procedurally generated underground environments where every dig reveals new possibilities. The deeper you venture, the more valuable treasures await discovery. Each layer of earth holds different types of precious materials, from common stones to rare gems and priceless artifacts.

Diverse Treasure Collection System

Uncover an impressive variety of collectibles including: - Precious Gems : Sparkling diamonds, emeralds, rubies, and sapphires - Ancient Artifacts : Mysterious relics from lost civilizations - Rare Minerals : Unique stones with special properties - Hidden Treasures : Secret items that unlock special rewards

Tool Switching Mechanics

Master different mining tools to optimize your treasure hunting efficiency. Switch between various equipment types to handle different materials and terrain challenges. Each tool serves a specific purpose in your underground adventure.

Progressive Gameplay

Start with basic equipment and gradually unlock advanced tools as you progress. The game rewards persistent exploration with better mining capabilities and access to deeper, more rewarding areas.

Gameplay Mechanics

Treasure Hunter offers intuitive yet engaging gameplay perfect for both casual sessions and extended mining marathons. Navigate through underground caverns, carefully plan your digging routes, and manage your resources effectively to maximize treasure collection.

The game's 2D perspective provides clear visibility of your surroundings while maintaining the excitement of discovery. Every block you dig might contain the next big treasure, creating an addictive "just one more dig" experience.

Controls Guide

Movement Controls: - WASD Keys : Navigate your miner character through underground tunnels - Spacebar : Jump over obstacles and reach higher platforms

Mining Controls: - E Key : Switch between different mining tools - F Key : Use your currently selected tool to dig or interact - Tab Key : Access the control menu for game settings

The intuitive control scheme ensures smooth gameplay whether you're a seasoned gamer or new to mining adventures.

Why Play Treasure Hunter

Perfect for Casual Gaming : Treasure Hunter excels as a relaxing yet engaging experience. Jump in for quick mining sessions during breaks or lose yourself in extended treasure-hunting expeditions.

Addictive Progression : The game's reward system keeps you coming back for more. Each successful dig brings you closer to rare treasures and unlocks new areas to explore.

Browser-Based Convenience : No downloads required! Play instantly in your web browser on any device with internet access.

Family-Friendly Fun : The charming 2D art style and non-violent gameplay make it suitable for players of all ages who enjoy discovery and collection games.

Stress-Free Adventure : Unlike competitive games, Treasure Hunter offers a peaceful mining experience where you set your own pace and goals.

Frequently Asked Questions (FAQ)