Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const dungeon = new Dungeon({
- // The dungeon's grid size
- width: 40,
- height: 40,
- rooms: {
- // Random range for the width of a room (grid units)
- width: {
- min: 5,
- max: 10
- },
- // Random range for the height of a room (grid units)
- height: {
- min: 8,
- max: 20
- },
- // Cap the area of a room - e.g. this will prevent large rooms like 10 x 20
- maxArea: 150,
- // Max rooms to place
- maxRooms: 10
- }
- });
Add Comment
Please, Sign In to add comment