This project was bootstrapped with Create React App.
See a live demo here.
Optionally, if you are on the main repository page, press '.' (period) for in-browser IDE.
Otherwise, download the repository via the cmd:
In the project directory via terminal, run:
Runs the installation of the app's dependencies.
Runs the app in development mode. Open http://localhost:3000 to view it in your browser.
The page will reload when you make code changes. You may also see any lint errors in the console.
The app begins with default values provided for the following input options:
- Map Width
- Map Height
- Partition Minimum Width
- Partition Minimum Height
- Room Minimum Width
- Room Minimum Height
- Seed
Click the Generate a Dungeon! button to see your new dungeon layout.
Note: Partition refers to the space partition / division of the map's size. See the Resources below for details.
Warning: If you provide a series of options that clash, then a default value will be substituted instead.
The binary space partitioning tree implementation follows the algorithm given in the book Procedural Content Generation in Games
The binary tree implementation comes from the work of Angelos Chalaris.
Thoroughly cover buildRooms and slicePartitions with unit tests.
Convert dungeon display to graphical version using tile sets with controllable orthographic camera.