Level generator

The level generator is the system that generates levels randomly in Baldi's Basics Plus.
== Steps ==
The level generator goes through multiple steps to set up the level and prepare the map.
# The level generator chooses a seed to start working with.
# It sets up the NPC cells, level details, events, field trips, and materials.
# It creates a imaginary border made of cells and sets up the Dijkstra map.
# It spawns a random special room and sets up the hallways.
# It spawns special hallways.
# It creates the cell plots and expands them.
# It fills in the other hallways.
# It deletes the plots and adds more special hall areas, and builds additional hallways.
# It adds the exit cells and updates the cells.
# It builds the field trip and rooms and sets up the doors.
# It spawns in all of the tiles and builds the room functions and doors.
# It sets up the .
# It builds the hall objects and posters.
# It spawns the lights, and items.
# It adds the events and NPC spawn points.
# It sets up the culling system, and spawns in the player.
== Trivia ==
* The level generator very rarely crashes when generating the level.
* Prior to V0.4, the level generator would take around 5–30 seconds to generate a level before the "" button shows up. It currently takes around roughly 5-10 seconds.
* In Baldi's Basics Classic Remastered, the system is not available as the text in script reads:
* In Baldi's Basics Kickstarter Exclusive Demo, prior to V0.4 Pre-release, the player could see placeholder textures when winning or losing a floor. These textures did not appear when completing floor 3 since it is the last floor.
Category:World development
ru:Генератор уровней