Seed the random number generator
This commit is contained in:
parent
9cdeee04d8
commit
d6952e9eaf
|
@ -60,6 +60,7 @@ function fromScreenCoordinate(x, y)
|
|||
end
|
||||
|
||||
function love.load()
|
||||
math.randomseed(os.time())
|
||||
love.mouse.setVisible(false)
|
||||
local width, height = love.graphics.getDimensions()
|
||||
setScreenDimensions(width, height)
|
||||
|
|
Loading…
Reference in New Issue