If you look at the docs for love.load it says
This function is called exactly once at the beginning of the game.
and nothing else really. Also it has one parameter, which are command line args.
So if you don't use the args, what is the difference between:
x = 5
-- rest of code
and
function love.load()
x = 5
end
-- rest of code
The biggest benefit to avoiding love.load
is that you can make x
local instead of global. Are there any benefits to using love.load
?