Lua Files

From PGE Wiki
Jump to: navigation, search

Explanation for each Lua file processing by LunaLUA

luna.lua

(since LunaLUA 0.7.3.1)

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 LunaLUA 0.7.3.1)

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


Deprecated file names (use them in LunaLUA before 0.7.3.1)

Those file names are kept for compatibility reasons and are not recommended to be used in new projects


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

DEPRECATED AUTOCODE!!! (not a Lua file!)

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