Tutorial: going down and up stairs
Adds the second tutorial level, tut-2.lua
This commit is contained in:
27
dat/tut-2.lua
Normal file
27
dat/tut-2.lua
Normal 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();
|
||||
Reference in New Issue
Block a user