Expose scaled mazes to special level lua

Adds a new level init type which directly creates a maze,
optionally setting corridor width and wall thickness,
and removing dead ends.

des.level_init({ style = "maze", corrwid = 3, wallthick = 1, deadends = false });
This commit is contained in:
Pasi Kallinen
2020-04-07 19:20:19 +03:00
parent f694f3b644
commit 665eacf40c
5 changed files with 26 additions and 11 deletions

View File

@@ -38,6 +38,7 @@ enum lvlinit_types {
LVLINIT_NONE = 0,
LVLINIT_SOLIDFILL,
LVLINIT_MAZEGRID,
LVLINIT_MAZE,
LVLINIT_MINES,
LVLINIT_ROGUE,
LVLINIT_SWAMP
@@ -110,6 +111,8 @@ typedef struct {
boolean smoothed, joined;
xchar lit, walled;
boolean icedpools;
int corrwid, wallthick;
boolean rm_deadends;
} lev_init;
typedef struct {