Pasi Kallinen
ffb9540295
Document the map characters used in lua
2020-04-14 11:46:57 +03:00
Pasi Kallinen
665eacf40c
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 });
2020-04-07 19:20:39 +03:00
Pasi Kallinen
fd89663a0f
Add selection gradient doc placeholder
2020-04-06 19:03:28 +03:00
Pasi Kallinen
eec9c2e209
Expose core random number functions to lua
...
Expose nh.rn2() and nh.random() to lua.
Add a math.random() compatibility shim to nhlib.lua
2020-03-25 12:24:32 +02:00
Pasi Kallinen
2fc9c02f88
lua special level feature flags
...
Allow des.feature() to set rm flags for the special features.
2020-03-06 20:30:15 +02:00
Pasi Kallinen
a6dfbfca2f
Lua: Add contents function to room and map
...
The function will get the map/room width and height as a parameter.
2020-03-04 20:05:15 +02:00
Pasi Kallinen
00be8be45a
Start of lua api docs
...
... in asciidoc format. Use "asciidoctor -b html5 lua.adoc"
to generate the HTML version.
2020-03-02 18:10:35 +02:00