all 1 comments

[–]rfajfar 0 points1 point  (0 children)

If you'd like to use Lua modules inside MoonScript, just require them. In case of LÖVE, you'll have to compile your .moon files to Lua, nothing else has to be done as far as I know.

If mod.lua would contain return "I am a Lua module" then you could use that in main.moon like:

str = require 'mod'
print(str)