Die in the Dungeon

Seele01-Flash
By
Die in the Dungeon combines innovative dice deck-building mechanics with classic roguelike gameplay. Build your dice collection, battle monsters, and explore procedurally generated dungeons in this unique turn-based adventure.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Die in the Dungeon - 3D Pixel Dice Roguelike**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: High-contrast **Pixel Art translated into 3D (Voxel-lite)**. The world should look like a dark, gritty 16-bit dungeon brought to life. Use flat-shaded geometries with crisp, pixelated textures (nearest-neighbor filtering) to mimic the original 2D art style. * **The Grid Board**: The central element is a 3x3 or diamond-shaped grid board (like the screenshot) floating slightly above the ground. It should look like carved stone or obsidian. * **Characters**: * **Player**: A voxel-style green Frog holding a small sword. Simple idle animation (bobbing up and down). * **Enemies**: A large voxel Fly-monster or Beetle. It should loom on the opposite side of the board. * **The Dice**: These are the core assets. Create 3D cubes with clear, bold pixel-art numbers on top. * *Red Dice*: Attack/Damage. * *Blue Dice*: Defense/Shield. * *Purple Dice*: Magic/Boost. * **Environment**: A dark, cavernous background. Use a simple geometry floor with a cracked stone texture. Add low-poly stone arches or pillars in the distance, fading into a dark grey/purple fog to mask the drawing distance and maintain high performance on mobile. * **Lighting**: A central spotlight on the board to highlight the gameplay area, with dim ambient purple/blue light to set the mood. ### 2. Audio Requirements * **BGM**: A mysterious, slightly tense "Dungeon Synth" track. Low-fidelity synthesizers, a slow tempo, and a loop that suggests deep exploration. * **SFX**: * *Dice Interaction*: A heavy, stone-like "clack" when placing dice on the board. * *Attack*: A retro 8-bit "slash" or "crunch" sound when the turn resolves. * *Shield*: A metallic "ping" sound. * *Enemy Turn*: A low, buzzing drone or growl. * *UI*: Crisp blips for button presses. ### 3. Gameplay Loop * **Turn-Based Roguelite Core**: 1. **Player Phase**: The player draws a hand of 3 random dice (Red, Blue, Purple) from their deck. 2. **Placement**: The player drags these dice onto the central grid board. Placing dice in specific patterns (e.g., adjacent to each other) boosts their values. 3. **Resolution**: The player presses "End Turn." The dice activate: Red deals damage to the enemy HP; Blue adds Shield points to block incoming damage. 4. **Enemy Phase**: The enemy executes its telegraphed move (e.g., "Attacking for 12 damage"). If Player Shield < Enemy Damage, the player loses HP. 5. **Win/Loss**: Reduce Enemy HP to 0 to win the encounter and gain a new die. If Player HP reaches 0, Game Over. ### 4. Mobile Controls & Interaction * **Orientation**: **Portrait Mode** (Vertical) is required for one-handed play. * *Layout*: Enemy at the top, Grid Board in the center, Player's Hand (Dice) at the bottom. * **Touch Interactions**: * **Drag & Drop**: Implement smooth Raycaster-based drag-and-drop for moving dice from the "Hand" area to the "Board" slots. The dice should snap magnetically into the grid slots when released near them. * **Selection**: Tapping a die in the hand highlights it and shows a tooltip of what it does. * **UI/UX**: * **End Turn Button**: A large, thumb-friendly button (at least 60px height) floating at the bottom right or center. * **Text Readability**: All damage numbers and HP values must be large, bold, and distinct colors (Red for HP, Blue for Shield) to be readable on small screens. * **Feedback**: * **Haptic**: Trigger a short vibration (`navigator.vibrate(20)`) when a die successfully snaps into a slot. * **Visual**: When a die is placed, spawn small particle effects (dust or magic sparkles) to confirm the action. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Die in the Dungeon is a captivating turn-based roguelike that revolutionizes the genre with its innovative dice deck-building system. Unlike traditional roguelikes, this game uses colorful dice as your primary tools for combat and exploration. Each playthrough offers a unique experience as you collect, upgrade, and strategically deploy different dice to overcome challenging dungeon encounters.

The game features charming pixel art graphics that bring the dungeon world to life, with detailed character sprites and atmospheric environments that perfectly capture the classic roguelike aesthetic.

Core Features

Revolutionary Dice Deck-Building System

The heart of Die in the Dungeon lies in its unique dice collection mechanics. Instead of traditional weapons or spells, you build a collection of specialized dice, each with different colors, numbers, and magical properties. Red dice might deal fire damage, blue dice could provide defensive shields, while green dice offer healing or support effects.

Strategic Turn-Based Combat

Every battle is a tactical puzzle where positioning, dice selection, and timing matter. The turn-based system allows you to carefully plan your moves, considering both immediate threats and long-term strategy. Combat feels both strategic and satisfying as you watch your carefully planned dice combinations unfold.

Procedurally Generated Dungeons

No two adventures are alike in Die in the Dungeon. Each dungeon level is procedurally generated, ensuring fresh challenges and discoveries with every playthrough. Explore mysterious chambers, discover hidden treasures, and face unpredictable monster encounters.

Progressive Character Development

As you venture deeper into the dungeon, you'll have opportunities to enhance your dice collection, unlock new abilities, and adapt your strategy to increasingly difficult challenges.

Gameplay Mechanics

Dice Collection and Management

Start with basic dice and gradually build a powerful collection through dungeon exploration. Each die serves a specific purpose in combat or exploration, and managing your dice inventory becomes a crucial strategic element.

Monster Encounters

Face a variety of creatures, each with unique abilities and weaknesses. Some monsters might be vulnerable to specific dice colors, while others require careful tactical positioning to defeat.

Risk vs Reward Decisions

True to roguelike tradition, every choice carries consequences. Decide whether to risk exploring dangerous areas for better rewards or play it safe with guaranteed but modest gains.

Operation Guide

Mouse Controls : The game features intuitive point-and-click controls using only the left mouse button. Click to select dice, target enemies, move through the dungeon, and interact with various game elements.

Dice Management : Click and drag to arrange your dice collection. Different dice types are represented by distinct colors and numbers, making them easy to identify at a glance.

Combat Actions : During battle phases, click on your chosen dice, then click on targets or positions to execute your actions. The visual feedback system clearly shows available moves and potential outcomes.

Menu Navigation : All game menus and interfaces are fully mouse-controlled, making the game accessible and easy to learn for players of all experience levels.

Why Play This Game

Die in the Dungeon offers a fresh take on the beloved roguelike genre that appeals to both newcomers and veterans. The dice deck-building system provides a unique strategic layer that sets it apart from traditional roguelikes. Whether you're a fan of tactical games, deck-building mechanics, or classic dungeon crawlers, this game offers something special.

The combination of strategic depth and accessible controls makes it perfect for both quick gaming sessions and longer strategic adventures. The pixel art style creates a nostalgic atmosphere while the innovative gameplay mechanics feel thoroughly modern.

Best of all, it's completely free to play in your web browser - no downloads, installations, or payments required. Simply load the game and dive into your dice-powered dungeon adventure immediately.

Frequently Asked Questions (FAQ)