Version 0.2.0
LÖVE Documentation
OverviewLicenceCreditsGetting started
Devices
love.objectslove.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timer
Types
AnimationColorFontImageMusicSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
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