Lua Files

Explanation for each Lua file processing by LunaLua

luna.lua
(since SMBX2 Beta 4)

When put in a level folder, code in this file impacts that level exclusively. But when put in the episode folder, this code impacts all levels in the episode.

map.lua
(since SMBX2 Beta 4)

When put in the episode folder, this code impacts the overworld.

lunadll.lua
When put in a level folder, code in this file impacts that level exclusively.

lunaworld.lua
When put in the episode folder, this code impacts all levels in the episode.

lunaoverworld.lua
When put in the episode folder, this code impacts the overworld.

lunadll.txt
Use only if you are working with legacy LunaDLL. When put in a level folder, the code in this file impacts that level exclusively.

lunaworld.txt
Use only if you are working with legacy LunaDLL. When put in the episode folder, this code impacts the overworld.

lunaglobal.txt
Use only if you are working with legacy LunaDLL. This is the global Autocode script file which puts in the SMBX / Engine root folder.