Converting the Room Builder
In this lesson, we will be converting the room builder to use the traits.
We'll cover the following
We created the room system in Building A Dungeon. This section won’t go through the algorithm again; instead, it’ll convert it to run inside of a MapArchitect
trait.
Creating rooms
We can make our first useful MapArchitect
by converting the room builder to use the trait. Create a new file named map_builder/rooms.rs
, and then add the following code:
Get hands-on with 1400+ tech skills courses.