mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-09-22 23:18:01 +03:00
This function is responsible for generating random dungeons for Pastel Chime Continue. The dgn_generate_drawfield() function implements the main logic. This algorithm constructs the dungeon through a multi-step process involving room creation, recursive expansion, wall placement, treasure room generation, and corridor pruning/extension. AutoDungeonE_Create() calls this function to create a layout based on specified parameters, and then populates arrays with the proposed coordinates of items, enemies, and traps. This implementation strives to faithfully reproduce the behavior of DrawField.dll, including its bugs, although it has not been strictly verified.