> For the complete documentation index, see [llms.txt](https://roogame.gitbook.io/roogame/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roogame.gitbook.io/roogame/survivors-roguelike-kit/adding-a-new-map-configuration.md).

# Adding a New Map Configuration

### **Step 1: Create Map Configuration**

#### **Option A: Duplicate Existing Map**

<figure><img src="/files/neaRem7nndgSrWaZ0897" alt=""><figcaption></figcaption></figure>

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**

<figure><img src="/files/ciW7rGtEnfe3UFDiUvEf" alt="" width="479"><figcaption></figcaption></figure>

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%
