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:
@@ -1340,6 +1340,7 @@ E boolean FDECL(litstate_rnd, (int));
|
||||
|
||||
/* ### mkmaze.c ### */
|
||||
|
||||
E void FDECL(create_maze, (int, int, BOOLEAN_P));
|
||||
E void FDECL(wallification, (int, int, int, int));
|
||||
E void FDECL(fix_wall_spines, (int, int, int, int));
|
||||
E void FDECL(walkfrom, (int, int, SCHAR_P));
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user