Use this guide to add a new playable level and configure its reward/progression behavior.

How Level Loading Works

Important Level Limit Behavior

How Win Progression and Reward Work

Mandatory Team Setup for Every Level

Config Fields You Must Know

Main Procedure: Add a New Level

Step 1: Create Level Prefab

  1. Duplicate an existing level prefab from: Assets/GorodiskiGames/TowerClash/ResourcesStatic/Prefabs/Levels/

  2. Rename it using project style, for example Level14.prefab.

  3. Open prefab and edit layout, buildings, and props (trees, wooden box) to block path creation.

  4. With Scene Gizmos enabled, each building uses BuildingView gizmos: a wire sphere at the building transform with radius "_radius" and wire color from "_teamID" (helps spacing and footprint checks).

  5. Ensure root object has LevelView component.

  6. Ensure level contains at least one Player building and at least one non-Player building.

Step 2: Set Reward on the Level Prefab

  1. Select the root LevelView component.
  2. Set "_reward" to desired cash amount.
  3. Save prefab.

Step 3: Register Level in GameConfig

  1. Open GameConfig asset: Assets/GorodiskiGames/TowerClash/Resources/GameConfig.asset
  2. Find "LevelPrefabs".
  3. Increase array size by 1.
  4. Add your new level prefab at the end.