# Rooms

We now need to make our floors rooms, make sure to download RAT with custom enemy support, available here: <https://modworkshop.net/mod/30432>

![](https://1229800202-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQAkTlyeVttU3CJdmYk%2F-Mg2TNvsaBt9iMCyzhjn%2F-Mg3Ij5_gia8tBP7tfU4%2Fimage.png?alt=media\&token=70b7afb0-3447-41ab-b152-723b35e4f7f1)

each floor should have over a hundred rooms, around 150 is best. Once we have done that we need to add our rooms into our mod. Create a new file in your resources folder for rooms.

![](https://1229800202-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQAkTlyeVttU3CJdmYk%2F-Mg2TNvsaBt9iMCyzhjn%2F-Mg3JYY9_wAyNaHA_cCs%2Fimage.png?alt=media\&token=e0d28213-4dcb-4795-a50f-19797a62490d)

For this example, I will just be using expands rooms, so of course, don't copy this code exactly. Once all the rooms are in ModRooms we will need to go back to ModRoomPrefabs.

![](https://1229800202-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQAkTlyeVttU3CJdmYk%2F-Mg2TNvsaBt9iMCyzhjn%2F-Mg3KxFuPWAdgpbm2qU9%2Fimage.png?alt=media\&token=b8b9526a-d0dd-4ad6-af3b-b09a88170ef5)

![](https://1229800202-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQAkTlyeVttU3CJdmYk%2F-Mg2TNvsaBt9iMCyzhjn%2F-Mg3Kz9odb02jVnI_9cJ%2Fimage.png?alt=media\&token=cb15405a-8b58-4b0d-98a3-4a268696a59d)

we now need to put the name of all of our rooms in here. ***do not include the path, just the room.***

Now we need to scroll down to here:&#x20;

![](https://1229800202-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQAkTlyeVttU3CJdmYk%2F-Mg2TNvsaBt9iMCyzhjn%2F-Mg3LDAZ8_F9ORiRfsog%2Fimage.png?alt=media\&token=42c68cce-8011-4700-b2be-417b10116ce7)

we are going to uncomment these lines to give us the entrance and exit of our floor.

```csharp
Mod_Entrance_Room = RoomFactory.BuildFromResource("Mod/Resources/ModRooms/floorEntrance.room"); // these to need to be set up just like how you would get an item sprite
Mod_Exit_Room = RoomFactory.BuildFromResource("Mod/Resources/ModRooms/floorExit.room");
Mod_Entrance_Room.category = PrototypeDungeonRoom.RoomCategory.ENTRANCE;
```

***make sure to add line 3***

now come down here:

![](https://1229800202-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQAkTlyeVttU3CJdmYk%2F-Mg2TNvsaBt9iMCyzhjn%2F-Mg3LolzYfKss7ukJeZY%2Fimage.png?alt=media\&token=20e1d358-0b52-40f6-a3bd-a23f253035bc)

and appropriately change the path for your mod

.&#x20;

![](https://1229800202-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQAkTlyeVttU3CJdmYk%2F-Mg2TNvsaBt9iMCyzhjn%2F-Mg3M-y4pEaLoePF-9-E%2Fimage.png?alt=media\&token=c405407f-dd75-4c12-a1c5-b4a5676db94e)

change this one too. <br>

uncomment this

![](https://1229800202-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQAkTlyeVttU3CJdmYk%2F-Mg2TNvsaBt9iMCyzhjn%2F-Mg3M8VMtkSliBZ7dbUz%2Fimage.png?alt=media\&token=f21a98b5-6bf0-4b19-96e8-8c9da23c0dae)

change the vector2 accordingly.
