Like you yourself, love.load () is run only once at the beginning and is therefore ideal for initializing variables. Anything installed outside this function may load more often.
Try creating a conf.lua file and activating the console. Then type () something outside of love.load () and you will see.
function love.conf(t)
t.console = true
end
print("Hello World!")
function love.load()
end
For me, he always printed Hello World! twice when starting the game.
As Pavel Kulchenko said, this may not affect simple values, but you will never know ...;)
source
share