When to use love.load()?
Posted: Wed Mar 27, 2013 2:40 am
I don't understand the purpose of love.load().
It loads all data within the function before the window is created, but what's the point in using it, as opposed to simply putting data outside the function?
ie:VS
What benefit does this have, and when is it appropriate to use?
It loads all data within the function before the window is created, but what's the point in using it, as opposed to simply putting data outside the function?
ie:
Code: Select all
rat = love.graphics.newImage("rat.png")
Code: Select all
function love.load()
rat = love.graphics.newImage("rat.png")
end