ucsb-cs56-projects / cs56-games-roguelike

-
5 stars 14 forks source link

Feat/procedurally generated caves #97

Closed Erick-Suarez closed 6 years ago

Erick-Suarez commented 6 years ago

Addresses issue #59

Added a new Class Room, to be used in LogicEngine. In LogicEngine there are new methods to create a room and to add corridors to connect rooms. in createWalls() there is now logic to handle random room creation and cases where random rooms might intersect. Settings can be tweaked in order to get a desired effect, such as by altering the range for room sizes, or where to place holes in the room at room creation, etc...

At its current state everytime the player starts the game, a new map will be generated, as well as when they go up a level.