Dwarves: Glory, Death, and Loot

Seele01-Flash
By
Dwarves: Glory, Death, and Loot is an action-packed auto-battle RPG where you command an army of brave dwarves through epic fantasy battles. Build your army, equip powerful weapons, and watch them fight dragons, orcs, and trolls in this addictive pixel-art roguelike adventure.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Dwarves: Glory, Death, and Loot - Pocket Edition**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: High-contrast **2.5D Side-Scrolling** aesthetic. Mimic the "Silhouette" style of the reference image. * **Background**: Create a dynamic **sunset gradient skybox** (Deep Red at the bottom transitioning to Orange and Yellow at the top) using a custom ShaderMaterial or CanvasTexture. Add slow-moving parallax clouds in the background. * **Foreground**: The ground should be jagged, black silhouette geometry (simulating a rocky dwarven battlefield). * **Characters (Units)**: Use simple 3D primitives (BoxGeometry) or Planes to represent units, but render them as **solid black silhouettes** to match the art style. * **Dwarves**: Blocky, stout silhouettes. Distinguish classes (e.g., Warrior with Axe, Mage with Staff) using simple attached geometric shapes. * **Enemies**: Spiky, larger silhouettes (Orcs/Trolls) approaching from the right side of the screen. * **VFX**: Use `THREE.Points` or simple sprite particles for battle impacts (white or bright yellow flashes) and gold coins flying when enemies are defeated. * **Mobile Optimization**: Use `InstancedMesh` if unit count exceeds 20. Limit shadows. Use an `OrthographicCamera` to maintain the 2D pixel-art perspective. ### 2. Audio Requirements * **BGM (Concept)**: The code should structure an `AudioListener` for a track that is "Epic, rhythmic orchestral chiptune" (heavy drums and horns). *Note: Use a placeholder oscillator or comment where the file would load.* * **SFX**: * **UI**: A heavy "stone sliding" sound for menu transitions and a "coin clink" for purchasing units. * **Combat**: "Thud" and "Clash" sounds when silhouettes collide. * **Victory**: A short triumphant horn fanfare. ### 3. Gameplay Loop The game runs on a strict **Shop -> Battle** loop: 1. **Preparation Phase (The Shop)**: * Player starts with limited Gold. * Display a horizontal list of 3 random "Unit Cards" or "Weapons" (e.g., Rusty Axe, Shield, Staff). * Player taps to buy/equip, which adds a unit to their "Lineup" (array of dwarves). * "Reroll" button to refresh shop items (costs gold). * "BATTLE" button to start the fight. 2. **Battle Phase (Auto-Battler)**: * The camera centers on the battlefield. * **Logic**: The Player's army (Left) and Enemy army (Right) move toward each other automatically on the X-axis. * **Combat**: When units collide, they stop and deal damage over time. * **Win**: All enemies dead -> Player gains Loot (Gold) -> Return to Shop. * **Loss**: All dwarves dead -> Game Over screen -> Restart. ### 4. Mobile Controls & Interaction * **Orientation**: **Landscape Mode** is mandatory. * **Input**: Purely **Touch/Click** based. No joysticks. * **Shop UI**: Large, distinct buttons (min 44px height) at the bottom of the screen for "Buy", "Reroll", and "Fight". * **Battle Interaction**: During battle, interaction is passive (watching), but allow tapping the screen to speed up the simulation (Time Scale x2). * **Feedback**: * **Visual**: Screen shake effect (move camera slightly) when a unit takes heavy damage. * **Haptic**: Trigger `navigator.vibrate(20)` on critical hits or purchase confirmation if supported. * **Responsiveness**: Ensure the Canvas resizes correctly on `window.resize` and fits different mobile aspect ratios without cutting off the battlefield. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Dwarves: Glory, Death, and Loot is an exciting auto-battle RPG that combines strategic army building with thrilling fantasy combat. In this pixel-art masterpiece, you take command of a mighty dwarven army, leading them through countless battles against fearsome enemies like orcs, trolls, and mighty dragons. The game offers a perfect blend of strategy and action, where your tactical decisions determine the fate of your warriors.

Unlike traditional RPGs where you control every move, this innovative game focuses on preparation and strategy. You build and equip your army, then watch as they automatically engage in epic battles. This unique approach makes the game accessible to both casual players and strategy enthusiasts, offering deep gameplay without overwhelming complexity.

Core Features

Strategic Army Building

The heart of the game lies in assembling your perfect dwarven army. Start with basic warriors and gradually expand your forces as you progress. Each dwarf can be equipped with different weapons and accessories, creating unique combinations that suit your playstyle.

Auto-Battle Combat System

Watch your carefully prepared army spring into action with the innovative auto-battle system. Your dwarves will fight automatically, but success depends entirely on how well you've prepared them for combat. This creates a unique strategic experience where planning is everything.

Extensive Skill Tree

As you progress through battles, you'll unlock skill points to spend on a comprehensive skill tree. Improve different unit types, enhance their abilities, and customize your army's strengths to face increasingly challenging opponents.

Rich Loot System

Every victory brings rewards! Collect weapons, armor, and accessories to strengthen your dwarven warriors. The loot system provides constant progression and motivation to take on tougher challenges.

Stunning Pixel Art Graphics

Enjoy beautiful retro-styled pixel graphics that bring the fantasy world to life. The distinctive art style creates an immersive atmosphere that perfectly captures the epic nature of dwarven warfare.

Gameplay Mechanics

Battle Preparation

Before each battle, use your gold to purchase weapons and equipment for your dwarves. Strategic preparation is crucial - the right combination of weapons and accessories can mean the difference between glorious victory and devastating defeat.

Enemy Variety

Face a diverse array of enemies, from savage orcs to massive trolls and legendary dragons. Each enemy type requires different strategies and army compositions to defeat effectively.

Progressive Difficulty

As your army grows stronger, so do your enemies. The game maintains perfect balance by scaling challenges to match your progress, ensuring every battle remains engaging and rewarding.

How to Play

Getting Started

New players should begin with the comprehensive tutorial that covers all basic mechanics. Learn how to build your army, purchase equipment, and engage in your first battles.

Army Management

Use your starting gold wisely to purchase weapons for your dwarven warriors. As you progress, you'll unlock more equipment types and can outfit your growing army with increasingly powerful gear.

Battle Selection

When your army is ready, use the reroll feature to browse available battles. Choose from three options based on difficulty and potential rewards, then watch your dwarves fight automatically.

Character Progression

Spend earned skill points in the extensive skill tree to improve your units' capabilities. Focus on different unit types based on your preferred strategy and the challenges you face.

Why Play This Game

Dwarves: Glory, Death, and Loot offers a unique gaming experience that combines the depth of traditional RPGs with the accessibility of auto-battle mechanics. Whether you're a strategy veteran or new to the genre, you'll find engaging gameplay that rewards both tactical thinking and progression planning.

The game is completely free to play in your browser, requiring no downloads or installations. With support for both desktop and mobile devices, you can command your dwarven army anywhere, anytime. The roguelike elements ensure that every playthrough feels fresh and challenging, providing endless replayability for fans of the genre.

Frequently Asked Questions (FAQ)