Unity tilemap editing tool. The tool uses BSP tree to generate completable dungeon floor layouts.
This tool is a basic tilemap editor that can be used to create top-down 2D game dungeons. It was made with Unity version 5.6.3f1.
WARNING: there is no undo functionality, the actions of clearing or deleting floors cannot be reverted.
Left Mouse Button: Navigate the editor menu
Left and Right mouse buttons: Paint on the tilemap
WASD: Move the camera
Escape: Quit the application
The editor uses 4-bit bitmasking to autotile as you edit the level layout. This checks the adjacent tiles to the North, East, South and West of the placed tile and updates all of their sprites accordingly.
When generating floor layouts, the program uses a Binary Space Partition (BSP) Tree structure to create the rooms and then connects the exits with the A* algorithm. Dungeon floors made with this are guaranteed to be completable (i.e. a player can move to anywhere on the generated floor from their starting point).
Credit to g4mersylver for the dungeon tileset. Downloaded from OpenGameArt https://opengameart.org/content/dungeon-tileset-rougelike-16x16 Some of the original sprites were edited for the autotiling functionality.
This project was made for a final-year assignment for my Advanced Technologies module.