Tutorial: going down and up stairs

Adds the second tutorial level, tut-2.lua
This commit is contained in:
Pasi Kallinen
2023-04-16 10:46:00 +03:00
parent dad1c3f8b7
commit d3e48dfad1
7 changed files with 49 additions and 11 deletions

27
dat/tut-2.lua Normal file
View File

@@ -0,0 +1,27 @@
des.level_init({ style = "solidfill", fg = " " });
des.level_flags("mazelevel", "noflip",
"nomongen", "nodeathdrops", "noautosearch");
des.map([[
--------------
|............|
|............|
|............|
|............|
|............|
|............|
--------------
]]);
des.region(selection.area(01,01, 73, 16), "lit");
des.stair({ dir = "up", coord = { 2,2 } });
des.engraving({ coord = { 1,1 }, type = "burn", text = "Use '" .. nh.eckey("up") .. "' to go up the stairs", degrade = false });
des.trap({ type = "magic portal", coord = { 11,5 }, seen = true });
des.non_diggable();