If a file called conf.lua is present in your game folder (or .love file), it is run before the LÖVE modules are loaded. You can use this file to overwrite the love.conf
function, which is later called by the LÖVE 'boot' script. Using the love.conf
function, you can set some configuration options, and change things like the default size of the window, which modules are loaded, and other stuff.
The love.conf
function takes one argument: a table filled with all the default values which you can overwrite to your liking. If you want to change the default screen size, for instance, do:
If you don't need the physics module or joystick module, do the following.
Setting unused modules to false is encouraged when you release your game. It reduces startup time (slightly) and reduces memory usage (slightly). Here is a full list of options and their default values:
Note that you can't disable love.filesystem
; it's mandatory. The same goes for the love
module itself.