# Adding a New Level

### **Step 1: Create Level Configuration**

#### **Option A: Duplicate Existing Level**

<figure><img src="/files/5PXReVVez4jdDR18k4TJ" alt=""><figcaption></figcaption></figure>

1. Navigate to:\
   `Assets/RGame/RoguelikeKit/ScriptableObjects/DataSO/Level/SelectLevel/`
2. Right-click an existing level config → **Duplicate**
3. Rename (e.g., `Level_03_Catacombs.asset`)

#### **Option B: Create New Level**

1. Right-click in folder → **Create → RGame → RoguelikeKit → Level → LevelConfigSO**
2. Name it following convention (e.g., `Level_04_IceCavern.asset`)

### **Step 2: Configure Level Parameters**

Open the new level config in Inspector, Just set it by name.

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

Map Config and Wave Config can be found in the catalog on the left to find out how to create them.

### **Step 3: Add to Level Selection UI**

1. Open prefab:\
   `Assets/RGame/RoguelikeKit/Prefabs/UI/MainMenu/LevelSelect_Panel.prefab`
2. In Inspector:
   * Find `MLevelSos` (LevelConfigSO array)
   * Click **+** to add new slot
   * Drag your new `LevelConfigSO` into the empty field

<figure><img src="/files/A1XFwJTyOwFXpzzWkqWR" alt="" width="491"><figcaption></figcaption></figure>

### **Step 4: Testing the Level**

1. Open scene:\
   `Assets/RGame/RoguelikeKit/Scenes/Initialization.unity`
2. Enter **Play Mode**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://roofen-game.gitbook.io/roofen-game/survivors-roguelike-kit/adding-a-new-level.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
