Purpose of love.load() vs top of main.lua
Posted: Thu Apr 27, 2023 5:52 am
The love documentation does not make it clear when you should use the love.load() callback versus just putting your initialization code at the top of the main.lua file. I know that love.load gives you access to the command line arguments and that you can declare local variables that will be accessible throughout the various callbacks at the top of the script but not in love.load, but apart from that, what is the difference?
I suppose my point is, what is the use of love.load() apart from giving access to the command line arguments?
I suppose my point is, what is the use of love.load() apart from giving access to the command line arguments?