Guest User

Untitled

a guest
Jul 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. const dungeon = new Dungeon({
  2. // The dungeon's grid size
  3. width: 40,
  4. height: 40,
  5. rooms: {
  6. // Random range for the width of a room (grid units)
  7. width: {
  8. min: 5,
  9. max: 10
  10. },
  11. // Random range for the height of a room (grid units)
  12. height: {
  13. min: 8,
  14. max: 20
  15. },
  16. // Cap the area of a room - e.g. this will prevent large rooms like 10 x 20
  17. maxArea: 150,
  18. // Max rooms to place
  19. maxRooms: 10
  20. }
  21. });
Add Comment
Please, Sign In to add comment