# Adding a New Map Configuration

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

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

<figure><img src="https://2218703886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4YPyrdOyfjDGtlxlvjSd%2Fuploads%2F4oKNTB2xIMTvk9Ds07vB%2Fimage.png?alt=media&#x26;token=aaed8c3e-6252-4291-86b5-2566414ff1c5" 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="https://2218703886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4YPyrdOyfjDGtlxlvjSd%2Fuploads%2FWQE2LRg8BM7Dkqij0T8d%2Fimage.png?alt=media&#x26;token=ff2034ab-e34c-47cf-b492-cb589ac202bf" 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%
