Seed the random number generator

This commit is contained in:
Juhani Krekelä 2023-06-03 21:56:26 +03:00
parent 9cdeee04d8
commit d6952e9eaf
1 changed files with 1 additions and 0 deletions

View File

@ -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)