LOVE engine allows love.filesystem.load
that returns a function chunk
, which you can call to evaluate the content, eg. you can load a lua module that simply returns a lua table.
Does Corona SDK has anything similar? LOVE does support iOS nowadays, so I wonder how they pull that off without triggering Apple’s rule (I heard Apple loosen their rules regarding lua loading).
require()
is not really designed for loading map data or animation data (which you might want to unload when changing scenes), so are there any alternatives?
Edit: from what I find Apple’s rule regarding lua loading changes over the year… as long as they are in your resource directory (read only, comes with your app), you should be fine?