love.filesystem:include( filename )
It is safe to include the same file more than once. LÖVE keeps track of included
files, to prevent reparsing.
Usage
love.filesystem:include( filename )Arguments
filenameThe filename of the file to read.
Returns
Nothing
Examples
Example 1: Including files.
-- main.lua (this file)
love.filesystem:include("other.lua")
-- At this point, stuff from other.lua can be used.
function load()
print(other_var)
end