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.