When a special level is created, there's a chance it gets flipped horizontally and/or vertically. Add new level flags "noflip", "noflipx", and "noflipy" to prevent flipping the level. Add a wiz-mode command #wizlevelflip to test the flipping on current level - although this doesn't flip everything, as level flipping is meant to happen during level creation.
46 lines
1.7 KiB
Lua
46 lines
1.7 KiB
Lua
|
|
|
|
des.level_init({ style = "solidfill", fg = " " });
|
|
des.level_flags("mazelevel", "noflip");
|
|
|
|
des.map([[
|
|
--------- --------- --------- ---------
|
|
---.......--- ---.......--- ---.......--- ---.......---
|
|
--...........-- --...........-- --...........-- --...........--
|
|
--.............-- --.............-- --.............-- --.............--
|
|
-...............- -...............- -...............- -...............-
|
|
|-...............---...............---...............---...............--
|
|
|.................-.................-.................-.................|
|
|
|........T.................T.................T.................T........|
|
|
|.......................................................................|
|
|
|......T.{.....................................................{.T......|
|
|
|.......................................................................|
|
|
|........T.................T.................T.................T........|
|
|
|.................-.................-.................-.................|
|
|
--...............---...............---...............---...............--
|
|
-...............- -...............- -...............- -...............-
|
|
--.............-- --.............-- --.............-- --.............--
|
|
--...........-- --...........-- --...........-- --...........--
|
|
---.......--- ---.......--- ---.......--- ---.......---
|
|
--------- --------- --------- ---------
|
|
]]);
|
|
|
|
des.region(selection.area(01,01,72,17), "lit");
|
|
|
|
des.stair("up");
|
|
des.stair("down");
|
|
|
|
des.non_diggable();
|
|
|
|
for i = 1,15 do
|
|
des.object();
|
|
end
|
|
|
|
for i = 1,6 do
|
|
des.trap();
|
|
end
|
|
|
|
for i = 1,28 do
|
|
des.monster();
|
|
end
|