<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />

Navigation

</aside>

🏠 Home Page

Overview

Progression and Balance

Merge Items & Branches

Dialogs

Energy

Experience

Tutorial

UI Store

💰 Monetization (Ads & IAP)

Every zone (location) in the game shares one continuous merge board. The level system is built of the following components:

These assets are stored in Assets/Project Files/Data/Level System.

<aside> 💡 To open the Level Editor, use the menu: Window - Level Editor

</aside>

image.png

<aside> 🧩 Merge items, item grades, and spawner/chest configs now live on their own page: Merge Items & Branches

</aside>

How progression works

flowchart TD
    A["Player upgrades buildings in the zone"] --> B{"Total upgrades reach this step's atUpgrade?"}
    B -- "not yet" --> A
    B -- "yes" --> C["Progression step activates"]
    C --> D["Grant exp level (optional)"]
    D --> E["Play dialog (optional)"]
    E --> F["Give reward (optional)"]
    F --> G["Step's tasks unlock"]
    G --> H["Sequential tasks added, one batch at a time"]
    H --> I["Random task pool kept topped up once sequential queue is drained"]

In simple words: every zone has a numbered list of progression steps (ZoneData.progression). Each step is tied to a total count of building upgrades in that zone (atUpgrade). Once the player reaches that count:

  1. The step fires.
  2. It can grant an exp level, play a dialog, and give a reward - any combination, all optional.
  3. It unlocks new tasks for the player: first a sequential batch (must finish in order), then, once that's drained, a random pool that stays topped up.

These tasks (mostly client orders) are what the player actually does next - completing them is what drives progress toward the next step. Field-level detail is in Zone progression queue below.

How to create a new zone

How to edit the merge board

Tasks

Every task implements ITask (TaskId, IsComplete, OnProgressChanged) and is tracked by TaskController, one instance per game, holding the active tasks for the current zone.

Zone progression queue

Think of this as a task-dispenser for the zone. It always has one of two "modes": working through a fixed, ordered list first, then switching to a self-refilling random pool once that list is empty.

Step 1 - building the ordered list. Every ZoneProgressionStep the player has reached (atUpgrade <= total upgrades done in the zone) contributes its sequentialTasks entries. These are pooled from all reached steps together, sorted by atUpgrade, into one single list - it's not "finish step 1's tasks, then step 2 unlocks its own separate list". If the player upgrades fast and reaches steps 1 and 2 before finishing either, both steps' entries are already sitting in the same list, back to back.

Step 2 - the list is handed out in batches, not all at once. Each entry is tagged Sequential or Parallel:

Example: step at atUpgrade = 3 defines [Sequential: OrderA, Parallel: OrderB, Sequential: OrderC].

Step 3 - once the ordered list is empty, switch to the random pool. The pool used is the randomTasks from the latest reached step that actually has one (a later step's pool replaces an earlier one's - they don't merge). It's kept topped up to maxSimultaneousRandomTasks at all times: whenever the player finishes one, a replacement is drawn immediately (no waiting for a whole batch like Step 2). Picks are weighted, and the system avoids repeating the exact task or character that's already active, when it has another option.

Example: pool = {OrderE weight 5, OrderF weight 3}, maxSimultaneousRandomTasks = 2 → both E and F appear right away. Player hands in E → one new task is drawn immediately to replace just that slot; F stays untouched.

Step 4 - the coin-gate pause (stopSpawnCoinMultiplier). This stops the random pool from over-feeding a player who's sitting on coins instead of spending them. If stopSpawnCoinMultiplier > 0 and the player's coins reach that many times the cheapest upgrade currently available in the zone, new random tasks stop spawning - a PlaceholderTask card fills the empty slot instead (it never completes on its own, just prevents an empty task panel). Once the player spends coins back below that threshold (e.g. buys the upgrade), the gate lifts, the placeholder is removed, and real random tasks resume.

Example: cheapest available upgrade costs 100 coins, stopSpawnCoinMultiplier = 2.5 → once the player holds >= 250 coins, the random slot shows a placeholder instead of a new order. Spend down below 250 (e.g. buy that upgrade) → placeholder is swapped for a real task again.

LevelDatabase fields