Mergest Kingdom - Merge Puzzle Kingdom Builder

Seele01-Flash
By
Mergest Kingdom is an addictive merge puzzle game where you build a magical kingdom by combining items in groups of three. Merge everything from dragons to gems as you explore infinite lands and complete challenging quests.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Mergest Kingdom - Isometric Fantasy Puzzle**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: Use a **vibrant, low-poly cartoon style** with an **Orthographic Camera** set at a fixed isometric angle (45 degrees) to simulate a classic strategy game look. * **Terrain**: Generate a grid-based map (e.g., 6x6 or 8x8 tiles). The base terrain should be a mix of "Green Grassland" tiles and a corner of "Volcanic Rock" tiles (referencing the screenshot). * **Game Objects (Merge Items)**: Use simple geometric primitives with distinct colors to represent tiers of items: * **Tier 1**: Small Green Sphere (Seed/Egg). * **Tier 2**: Yellow Capsule (Sprout/Chick). * **Tier 3**: Blue Box with wings/leaves (Tree/Creature). * **Tier 4**: Complex Purple shape or Golden glowing object (Magical Structure). * **Visual Feedback**: * Selected items should slightly scale up or float up (Y-axis offset). * **Merge Effect**: When 3 items combine, trigger a particle explosion (using `THREE.Points`) with gold or white colors to signify magic. * **Mobile Optimization**: Use `THREE.InstancedMesh` for the ground grid to save draw calls. Use simple `MeshLambertMaterial` or `MeshToonMaterial` for performance. ### 2. Audio Requirements * **BGM**: A loop of relaxing, orchestral fantasy music (harp, flute, light strings) to encourage a "zen" state of mind. * **Sound Effects (SFX)**: * **Pick Up**: A quick, high-pitched "pop" or "whoosh". * **Drop/Place**: A solid, wooden "thud". * **Merge Success**: A magical chime or harp glissando (satisfying reward sound). * **Error**: A low dull thud if the item cannot be placed there. ### 3. Gameplay Loop * **Core Mechanic**: The "Merge-3" System. 1. The player drags an item from one tile to another. 2. When dropped, the game checks adjacent tiles (up, down, left, right). 3. If **2 or more** neighbors match the dropped item's Type and Tier (making a group of 3+): * Destroy the neighbor items. * Upgrade the dropped item to the **Next Tier**. * **Objective**: Clear space on the limited grid and discover the highest tier item (e.g., a "Golden Dragon" or "Castle"). * **Spawning**: Add a "Spawn Button" in the UI that adds a random Tier 1 item to an empty tile, allowing the game to continue. ### 4. Mobile Controls & Interaction * **Input System**: Implement a robust Raycaster system handling `touchstart`, `touchmove`, and `touchend` events. * **Touch Start**: Raycast to find the object, lift it visually (y + 1), and attach it to the cursor/finger position. * **Touch Move**: The object follows the finger (clamped to the ground plane). Highlight the grid tile underneath the finger to show where it will land. * **Touch End**: Snap the object to the nearest grid center. If the tile is occupied by a non-mergeable item, return the object to its original position. * **Orientation**: Portrait mode preferred for one-handed play, but responsive to landscape. * **UI Overlay**: * HTML/CSS overlay for a "Score" counter at the top. * A large, thumb-friendly "Spawn Resource" floating action button (FAB) at the bottom center (at least 60x60px). * **Haptic Feedback**: Trigger `navigator.vibrate(50)` on a successful merge event. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Mergest Kingdom

Mergest Kingdom is a captivating merge puzzle and kingdom building game that combines the satisfaction of match-3 mechanics with strategic city building. In this magical world, you'll create and expand your own kingdom by merging items in groups of three, unlocking new resources, and discovering countless objects to combine. The game offers endless possibilities for customization and exploration in a beautifully crafted fantasy setting.

This free-to-play puzzle game features hundreds of mergeable objects, from basic resources to mythical creatures like dragons. Each successful merge creates something new and more valuable, allowing you to progressively build a more impressive kingdom while tackling increasingly complex challenges.

Core Features

Infinite Merge Possibilities

The heart of Mergest Kingdom lies in its extensive merging system. You'll start with basic resources that can be combined to create houses, which can then be merged into larger structures. The game features hundreds of different objects to discover and merge, including:

  • Magical creatures : Dragons, unicorns, and other fantasy beings
  • Resources : Gems, gold, wood, and rare materials
  • Buildings : Houses, castles, and specialized structures
  • Nature elements : Trees, flowers, and landscape features

Kingdom Customization

You have complete creative freedom to design your kingdom exactly as you envision it. The game world stretches infinitely, giving you unlimited space to expand and customize your realm. Position buildings strategically, create themed areas, and organize your kingdom to maximize both efficiency and aesthetic appeal.

Quest System and Progression

Mergest Kingdom keeps players engaged with a robust quest system that provides clear objectives and rewarding progression. Complete daily quests for gold and gems, tackle longer campaign missions, and unlock new areas as you advance through the game.

Gameplay Mechanics

Mining and Harvesting

Resource management is crucial in Mergest Kingdom. You'll mine raw materials and harvest resources that serve as the foundation for all your merging activities. These basic materials can be transformed through the merging process into increasingly valuable and complex items.

Land Exploration

As your kingdom grows, you'll unlock new territories filled with mysterious creatures and unique resources. Each new land brings fresh challenges and opportunities for expansion, ensuring that the gameplay remains engaging and diverse.

Operation Guide

Basic Controls: - Mouse : Drag and drop items to merge them - Left Click : Select and move objects - Drag : Combine three identical items to create upgrades

Merging Strategy: 1. Always look for groups of three identical items 2. Focus on building key structures like the King's Barracks early 3. Generate keys as they're essential for progression 4. Plan your kingdom layout for optimal resource flow 5. Complete daily quests for valuable rewards

Why Play Mergest Kingdom

Perfect for Puzzle Lovers : If you enjoy match-3 games and kingdom builders, Mergest Kingdom offers the perfect blend of both genres. The satisfying merge mechanics combined with creative building elements create an addictive gameplay loop.

Completely Free : The game is 100% free to play with no mandatory purchases. While optional premium items are available to speed up progress, the entire game can be enjoyed without spending money.

Cross-Platform Gaming : Available on web browsers, iOS, and Android devices, you can play anywhere and continue your kingdom building journey across multiple platforms.

Endless Content : With hundreds of objects to discover and infinite land to explore, Mergest Kingdom provides countless hours of engaging gameplay. The regular addition of new content ensures fresh challenges and objectives.

Relaxing Yet Engaging : The game strikes the perfect balance between relaxing casual gameplay and strategic depth, making it ideal for both quick play sessions and longer gaming marathons.

Frequently Asked Questions (FAQ)