Adding a New Map Configuration

Step 1: Create Map Configuration

Option A: Duplicate Existing Map

  1. Navigate to: Assets/RGame/RoguelikeKit/ScriptableObjects/DataSO/Level/Map/

  2. Right-click an existing MapConfig → Duplicate

  3. Rename (e.g., Map_Catacombs.asset)

Option B: Create New Map

  1. Right-click in folder → Create → RGame → RoguelikeKit → Map Config

  2. Name it (e.g., Map_IceCavern.asset)

Step 2: Configure Core Parameters

Open the new MapConfig in Inspector:

Parameter
Description
Example Value

Width

Map width in tiles

50

Height

Map height in tiles

50

PropCount

Number of loot containers

15

Step 3: Add Tile Variants

Click + in the Tiles array to add tile types:

Field
Description

Sprite

Tile Sprite

Weight

Spawn probability weight

Weight Calculation

  • Total weight = 70 (Stone) + 20 (Wall) + 10 (Moss) = 100

  • Stone Floor spawn chance = 70/100 = 70%

Last updated