Cube Miner - Prison Escape Mining Adventure

Seele01-Flash
By
Cube Miner is an exciting prison escape adventure where you mine your way to freedom! Gather resources, trade with merchants, upgrade equipment, and use explosives to uncover secret escape routes in this engaging pixel-art crafting game.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Cube Miner**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** 2.5D Voxel Art aesthetic (Minecraft-inspired). The world is built of 1x1x1 cubes. Use `THREE.BoxGeometry` for almost everything to maintain a consistent blocky look. * **Textures:** Use low-resolution pixel art textures (16x16 or 32x32). Ensure `texture.magFilter = THREE.NearestFilter` is set to keep pixels crisp and not blurry. * **Character Model:** A Voxel character resembling an older gentleman in a dark business suit with a red tie and a grey mustache. He should hold a voxel pickaxe in the right hand. * **Environment Design:** * **Top Layer (Start):** A grey, gloomy prison cell aesthetic with iron bars. * **Underground Layers:** Procedurally generated layers of blocks. Start with Dirt (brown), move to Stone (grey), then Bedrock (unbreakable black). * **Ores:** Scattered Gold, Diamond, and Coal blocks within the stone layers that sparkle (emissive material). * **Mobile Optimization:** Use `InstancedMesh` for the terrain blocks to handle high block counts on mobile GPUs without lag. Implement Frustum Culling to hide blocks not currently visible on the phone screen. ### 2. Audio Requirements * **BGM:** A catchy, loopable "Chiptune Blues" track. It should feel rhythmic to match the mining action, with a bass line that sounds like machinery. * **Sound Effects (SFX):** * **Mining:** A satisfying "Crunch" or "Tink" sound (vary the pitch slightly on every hit to avoid repetition). * **TNT:** A loud, compressed "Boom" with a decay tail. * **Collection:** A high-pitched "Ding" or "Pop" when gathering resources. * **Merchant:** A mumbled greeting sound (animal crossing style) when opening the trade menu. * **Eating Cake:** A quick "Chomp" sound. ### 3. Gameplay Loop * **Core Mechanic:** The player starts at the top (Prison) and must dig downward to find an escape route. * **Mining & Gathering:** Tapping a block destroys it (if the pickaxe is strong enough) and drops a resource. * **Economy & Upgrades:** Players must return to the surface (or find underground Merchants) to sell resources. * **Currency:** Gold/Cash. * **Upgrades:** Spend cash to buy a Better Pickaxe (mines faster), TNT (clears 3x3 area), or "Mine Generator" upgrades (auto-mines resources over time). * **Stamina/Boost System:** The player has an energy bar. Eating "Cakes" (consumable item) restores energy and gives a temporary speed boost. * **Victory Condition:** Reach the "Secret Escape Tunnel" block located at depth -100 to win the level. * **Fail Condition:** Running out of energy/health before reaching a checkpoint or getting caught by a "Prison Guard" (roaming NPC near the surface). ### 4. Mobile Controls & Interaction * **Orientation:** Landscape mode required. * **Virtual Joystick:** Implement a dynamic virtual joystick on the **left side** of the screen for character movement (Left/Right/Jump). * **Action Buttons (Right Side):** * **Large "Mine" Button:** The primary interaction button. Must be at least 64x64px. * **Small "TNT" Button:** To place/throw explosives. * **Small "Eat" Button:** To consume cake. * **UI Layout:** * Top Left: Health/Energy Bar. * Top Right: Current Money & Backpack capacity. * All UI elements must be touch-friendly with distinct hit areas to prevent accidental clicks. * **Feedback:** * **Haptic Feedback:** Trigger a short vibration (using `navigator.vibrate`) every time a block is destroyed and a heavy vibration when TNT explodes. * **Visual Feedback:** Screen shake effect on TNT explosions. Floating "+1 Gold" text popping up when resources are collected. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Cube Miner is a captivating platform puzzle adventure that combines mining, crafting, and strategic escape planning. Trapped behind prison walls, your only path to freedom lies deep within the underground mines. This unique pixel-art game challenges you to gather resources, make smart trades, and blast your way through hidden passages using dynamite and cunning.

With its charming blocky graphics reminiscent of popular sandbox games, Cube Miner offers an immersive mining experience where every click brings you closer to your ultimate goal: escape from prison.

Core Features

Resource Mining & Collection

Click your way through various underground materials and precious ores. Each resource you collect serves a purpose in your escape plan, whether for trading, crafting, or upgrading your mining equipment.

Strategic Trading System

Interact with different merchants throughout your underground journey. Trade your hard-earned resources for better tools, explosive materials, and special items that will aid in your escape mission.

Equipment Upgrades

Improve your mining gear to extract resources faster and more efficiently. Upgrade your mine generator to boost extraction speed, allowing you to gather materials at an accelerated pace.

Explosive Gameplay

Use dynamite strategically to blast through walls and uncover hidden areas. These secret passages might contain valuable resources or reveal new escape routes that weren't previously accessible.

Energy Management

Consume cakes and other consumables to boost your mining performance. Managing your energy levels is crucial for maintaining peak mining efficiency throughout your escape journey.

Gameplay Mechanics

The game revolves around a compelling prison break narrative where mining isn't just about collecting resources—it's about survival and freedom. You'll need to balance resource gathering with strategic planning, deciding when to trade, when to upgrade, and when to use your precious explosives.

Explore interconnected underground areas, each presenting unique challenges and opportunities. Some areas require specific tools or explosive access, while others might house valuable merchants or rare resources essential for your escape plan.

Operation Guide

Basic Controls: - Click : Mine blocks and interact with objects - WASD Keys or Arrow Keys : Move your character around the mining areas - Mobile/Tablet : Use the on-screen joystick for movement and tap to mine

Mining Strategy: 1. Start by mining basic resources near your starting position 2. Trade initial resources with merchants for better equipment 3. Use upgraded tools to access deeper, more valuable mining areas 4. Collect dynamite and use it strategically to blast through blocked passages 5. Keep an eye out for cakes and other consumables to maintain your energy 6. Gradually work toward uncovering the secret escape routes

Why Play This Game

Cube Miner offers a perfect blend of strategy, action, and puzzle-solving that appeals to both casual and dedicated gamers. The prison escape theme adds urgency and purpose to every mining action, making resource collection feel meaningful and exciting.

The game's accessibility across all devices means you can continue your escape progress whether you're on your computer during a break or on your mobile device while traveling. With completely free gameplay and no downloads required, you can start your mining adventure immediately.

The pixel-art style creates a nostalgic gaming atmosphere while the strategic gameplay keeps you engaged for hours. Each successful trade, upgrade, and explosive breakthrough brings a satisfying sense of progress toward your ultimate freedom.

Frequently Asked Questions (FAQ)