Pen Dig - Mining Clicker Game

Seele01-Flash
By
Pen Dig is an addictive clicker idle game where you transform a simple pencil into a mining empire. Dig through earth, upgrade your tools, and build a thriving metropolis from the ground up.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Pen Dig - Vertical Destruction Clicker**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Hyper-casual, vibrant cartoon style with smooth shading (StandardMaterial). The view should be a **fixed side-scrolling perspective (OrthographicCamera)** that follows the pencil as it descends vertically. * **Main Character (The Pencil)**: Create a composite mesh representing a classic pencil: * **Body**: Yellow hexagon or cylinder. * **Ferrule**: Silver metallic ring. * **Eraser**: Pink rounded cylinder on top. * **Tip**: Wooden cone with a black graphite point. * **Animation**: The pencil should physically animate (squash and stretch or vibrate) when striking the ground. * **The Ground (Destructible Terrain)**: * Generate a grid of "Soil Blocks" (BoxGeometry) beneath the pencil. * **Layers**: Top layer is Green (Grass), followed by Brown (Dirt), Dark Brown (Deep Earth), and Grey (Stone). * **Debris System**: Use `InstancedMesh` for performance to render small cubic particles that explode outward when a block is destroyed. * **Background**: A parallax scrolling background showing a stylized 2D city skyline (blue/purple tones) and a gradient sky (blue to sunset orange) to contrast with the foreground. * **Performance**: Use simple geometries (Low-poly) and merge meshes where possible. Limit dynamic lights to one DirectionalLight and one AmbientLight. ### 2. Audio Requirements * **BGM**: A loop of upbeat, rhythmic, "busy work" style music (Marimba or Synth-pop) that encourages tapping. * **Sound Effects (SFX)**: * **Digging/Impact**: A satisfying *thud* or *crunch* sound with randomized pitch to avoid repetition. * **Breaking**: A crumbling stone sound when a block is fully destroyed. * **Coin Collect**: A high-pitched *ding* or *ching* sound. * **Upgrade**: A positive rising chime sound. ### 3. Gameplay Loop * **Core Mechanic**: The pencil sits vertically above the ground. The goal is to dig as deep as possible. * **Destruction Logic**: * The ground blocks have "Health Points" (HP). * Every "Attack" reduces the block's HP. * When HP reaches 0, the block disappears, debris particles fly, and coins are added to the player's balance. * The pencil automatically descends to the next block. * **Economy & Upgrades**: * **Currency**: Coins dropped from blocks. * **Upgrade System**: A simplified UI panel allows upgrading: * **Strength**: Increases damage per hit. * **Speed**: Increases auto-digging speed (if idle). * **City Building (Simplified)**: As depth increases, update a UI text labeled "City Growth" or "Resources Mined" to simulate the description's building aspect. ### 4. Mobile Controls & Interaction * **Orientation**: **Portrait Mode** (Vertical) is mandatory to emphasize the depth of digging. * **Input Handling**: * **Tap to Dig**: The primary interaction. Touching anywhere on the lower 2/3rds of the screen causes the pencil to strike immediately (rapid tapping = faster digging). * **Hold to Auto-Drill**: Holding the finger down creates a continuous drilling action (slower than rapid tapping but automatic). * **Haptic Feedback**: Trigger `window.navigator.vibrate(50)` on every successful block destruction for tactile satisfaction. * **UI/UX**: * Upgrade buttons should be large (minimum 44x44px target area) and placed at the bottom of the screen for thumb accessibility. * Display "Current Depth" and "Coins" clearly at the top (safe area). * Implement "Juice": Screen shake effect (camera jitter) when breaking hard rocks. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Pen Dig is a unique and engaging clicker idle game that combines mining mechanics with city building elements. Starting with nothing but a simple pencil, you'll embark on an incredible journey from humble beginnings to creating a prosperous mining empire. This free-to-play browser game offers hours of addictive gameplay without requiring any downloads or installations.

The game features a charming art style with colorful 3D graphics that bring the underground mining world to life. Watch as your basic pencil evolves into powerful drilling equipment capable of breaking through the toughest materials.

Core Features

Progressive Upgrade System

Begin your adventure with a basic pencil and gradually upgrade to extraordinary mining tools. Each upgrade dramatically increases your digging power, allowing you to break through harder materials and earn coins faster. The satisfaction of watching your simple pencil transform into a high-tech drilling machine is incredibly rewarding.

Idle Progression Mechanics

Even when you're away from the game, your mining operation continues to generate resources. This idle gameplay feature means you can return to find accumulated wealth waiting for you, making it perfect for both active and casual gaming sessions.

City Building Elements

What sets Pen Dig apart from other clicker games is its unique city building component. Use the resources you mine to construct buildings and develop new areas above ground. Transform barren land into a bustling metropolis while expanding your underground mining network.

Resource Management Strategy

Develop your own unique strategy for resource allocation. Decide whether to focus on upgrading your mining equipment for faster resource gathering, or invest in city development for long-term benefits. The strategic depth keeps the gameplay engaging beyond simple clicking.

Gameplay Mechanics

The core gameplay revolves around clicking to dig deeper into the earth while breaking stones and collecting valuable resources. As you progress, you'll unlock new mining areas with different materials and challenges. The deeper you go, the more valuable resources you'll discover.

Your truck serves as a crucial transportation tool, helping you move resources efficiently between mining sites and your growing city. Managing both your digging operations and transportation logistics adds an extra layer of strategy to the experience.

Operation Guide

Getting started with Pen Dig is incredibly simple:

  • Digging : Use the spacebar or left mouse button to control your pen and dig through the earth
  • Transportation : Control your truck using WASD keys, arrow keys, or hold the left mouse button to move resources
  • Upgrades : Spend earned coins to upgrade your pen's power and unlock new equipment
  • Building : Invest resources into constructing buildings and expanding your city
  • Strategy : Balance between upgrading mining equipment and developing your city infrastructure

The intuitive controls make it easy for players of all ages to jump in and start playing immediately. The game gradually introduces new mechanics as you progress, ensuring you never feel overwhelmed.

Why Play This Game

Perfect for All Gaming Styles : Whether you prefer active clicking sessions or relaxed idle gameplay, Pen Dig accommodates both preferences. The idle mechanics ensure continuous progress even during breaks.

No Financial Commitment : Completely free to play with no hidden costs or mandatory purchases. Experience the full game without spending any money.

Cross-Platform Accessibility : Play directly in your web browser on any device - desktop computers, laptops, tablets, or smartphones. No downloads or installations required.

Satisfying Progress Loop : The combination of immediate clicking satisfaction and long-term strategic planning creates an incredibly addictive gameplay loop that keeps players engaged for hours.

Unique Concept : The creative blend of mining, city building, and clicker mechanics offers a fresh take on the idle game genre that you won't find elsewhere.

Pen Dig delivers the perfect balance of simple mechanics and strategic depth, making it an ideal choice for anyone looking for an engaging, stress-free gaming experience that can be enjoyed in short bursts or extended play sessions.

Frequently Asked Questions (FAQ)