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