Mergest Kingdom - Merge Puzzle Adventure

Seele01-Flash
By
Mergest Kingdom is an addictive merge puzzle game where you build and customize your own magical kingdom by combining items in groups of three. Create everything from houses to dragons while completing quests and exploring infinite lands.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Mergest Kingdom**" (an Isometric Fantasy Merge-3 Puzzle). Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Use a **Low-Poly, Toon-Shaded** aesthetic to mimic the casual, colorful look of mobile merge games. Colors should be vibrant and high-saturation (fantasy greens, golds, and purples). * **Camera & Perspective**: Set up an **Orthographic Camera** positioned isometrically (45 degrees) to provide a classic strategy view. The camera must support panning (to view the infinite map) and zooming. * **Map/Grid System**: Generate a tile-based grid environment representing "The Kingdom." * **Terrain**: Green grass tiles for buildable areas, grey stone tiles for obstacles, and darker tiles representing "Fog of War" or locked areas. * **LOD/Performance**: Use `InstancedMesh` for the grid tiles to ensure 60FPS on mobile devices when the map grows large. * **Mergeable Objects (Assets)**: Create distinctive geometric placeholders to represent tiers: * *Tier 1 (Raw)*: Small Green Spheres (Seeds/Resources). * *Tier 2 (Basic)*: Small Brown Cubes (Logs/Basic Structure). * *Tier 3 (Structure)*: House-shaped geometry with red roofs. * *Creatures*: Simple winged capsules or cones representing Dragons/Griffins (animated with a simple bobbing motion). * **VFX**: Implement simple particle explosions (using `THREE.Points`) that trigger specifically when items merge. A "glow" effect (shader or sprite) should appear under the currently selected item. ### 2. Audio Requirements * **BGM**: Generate/Load a placeholder for a **Peaceful Orchestral Fantasy Loop**. It should feature flutes and light percussion, evoking a feeling of farming and building. * **Sound Effects (SFX)**: * *Select/Lift*: A soft "pop" or suction sound. * *Drop*: A light "thud." * *Merge Success*: A magical "chime" or major-chord ascending harp glissando. * *Invalid Move*: A dull "buzzer" or low-pitch thud. * *Quest Complete*: Fanfare sound. ### 3. Gameplay Loop * **Core Mechanic (Merge-3)**: * The player drags an object onto the grid. * If the object is placed adjacent to **two or more** identical objects (horizontal, vertical, or L-shape), all involved objects merge. * **Result**: The dragged items disappear, and a new **Next-Tier Object** spawns at the drop location. * **Resource Gathering**: Some static objects (Trees/Rocks) can be tapped (not dragged) to spawn Tier 1 resources (Seeds/Gems) into empty adjacent tiles. * **Progression**: * *Tier 1 + Tier 1 + Tier 1 = Tier 2*. * *Tier 2 + Tier 2 + Tier 2 = Tier 3*. * **Win/Expansion**: A simple "Quest System" UI overlay. Example: "Merge 3 Dragons to unlock the Lava Zone." Unlocking removes "Fog of War" tiles. ### 4. Mobile Controls & Interaction * **Touch Input System**: Use `Raycaster` mapping touch coordinates to the grid plane. * **Drag & Drop**: Long-press to pick up an object. The object should visually lift (y-axis offset) and cast a shadow while being dragged. * **Snapping**: When the user releases the touch, the object must "snap" to the nearest valid grid center. If the tile is occupied (and not a merge), the object bounces back to its original position. * **Camera Control**: * *One Finger (on background)*: Pan the map. * *Two Fingers*: Pinch to Zoom in/out. * **Haptic Feedback**: Trigger `navigator.vibrate(50)` on a successful merge to provide tactile satisfaction. * **UI/HUD**: * Mobile-responsive overlay using HTML/CSS over the canvas. * Buttons (Quests, Inventory) must be at least **44x44 pixels** for touch accessibility. * Support both **Portrait** and **Landscape** orientations (resize listener required). Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Mergest Kingdom is a captivating merge puzzle and kingdom-building adventure that combines the satisfaction of match-3 mechanics with creative city building. In this magical world, you'll start with basic resources and gradually build an entire kingdom by merging items in groups of three. From humble beginnings with simple materials, you'll create houses, dragons, gems, and countless other objects as you expand your realm across infinite lands.

The game offers a perfect blend of strategic thinking and creative freedom, allowing you to design your kingdom exactly as you envision it. With hundreds of mergeable objects and endless expansion possibilities, every player's kingdom becomes a unique masterpiece.

Core Features

Infinite Merging Possibilities

Discover hundreds of unique objects that can be combined in groups of three. Start with basic resources like wood and stone, merge them into houses, then combine houses to create magnificent castles. The merging chain extends to magical creatures like dragons, precious gems, trees, and specialized buildings.

Complete Creative Freedom

Unlike restrictive building games, Mergest Kingdom gives you total control over your kingdom's layout. Position buildings wherever you want, create themed areas, and design your land to reflect your personal style. The infinite land ensures you'll never run out of space for expansion.

Quest-Driven Progression

Stay engaged with a constant stream of quests that reward you with gold, gems, and unlock new content. Daily quests provide additional rewards, encouraging regular play and steady kingdom growth. Each completed mission brings you closer to unlocking rare items and new areas to explore.

Magical Exploration

Venture into mysterious new lands filled with unique creatures and rare resources. Each area offers different merging opportunities and challenges, keeping the gameplay fresh and exciting as you expand your kingdom's borders.

Gameplay Mechanics

Resource Management and Mining

Begin your journey by harvesting and mining basic resources. These raw materials serve as the foundation for everything in your kingdom. Smart resource management becomes crucial as you progress, balancing immediate needs with long-term kingdom development goals.

Strategic Merging System

The three-item merging mechanic requires strategic thinking. Plan your merges carefully to maximize efficiency and unlock the most valuable items. Some merge chains lead to powerful dragons, while others create essential buildings or rare gems needed for advanced quests.

Kingdom Customization

Your kingdom reflects your personality and strategic choices. Arrange buildings for optimal efficiency, create beautiful landscaping with merged trees and decorations, or focus on producing specific resources. The game adapts to your preferred playstyle.

Operation Guide

Basic Controls: - Mouse Drag : Click and drag items to move them around your kingdom - Merge : Drag similar items together in groups of three to create new objects - Quest Menu : Access available missions and daily challenges - Inventory : Manage your collected items and resources

Gameplay Tips: - Focus on building King's Barracks early to generate essential keys - Plan merge chains in advance to avoid cluttering your kingdom - Complete daily quests for consistent gem and gold income - Explore new lands regularly to discover rare resources - Keep similar items grouped together for efficient merging

Why Play Mergest Kingdom

Completely Free to Play : Enjoy the full kingdom-building experience without mandatory purchases. Optional in-game purchases can accelerate progress but aren't required for enjoyment.

Cross-Platform Accessibility : Play seamlessly across desktop browsers, mobile phones, and tablets. Your kingdom progress synchronizes across devices for gaming anywhere, anytime.

Endless Replay Value : With infinite lands to explore, hundreds of items to discover, and complete creative freedom, no two kingdoms are alike. The game grows with you, offering new challenges and possibilities as you advance.

Perfect for All Ages : Simple drag-and-drop mechanics make the game accessible to younger players, while strategic depth and kingdom management appeal to experienced gamers. Whether you have five minutes or several hours, Mergest Kingdom adapts to your available time.

Regular Content Updates : The game continuously evolves with new items, quests, and features, ensuring long-term entertainment value and fresh challenges for dedicated players.

Frequently Asked Questions (FAQ)