solved a seed thingie
This commit is contained in:
parent
b81d7213c3
commit
eea008e8c1
5
main.lua
5
main.lua
|
@ -42,8 +42,9 @@ end
|
||||||
function love.keypressed(key)
|
function love.keypressed(key)
|
||||||
if key == "z" then
|
if key == "z" then
|
||||||
obj_list = {}
|
obj_list = {}
|
||||||
notsorandomseed = love.data.encode("string", "hex", love.data.hash("sha256", os.time()))
|
notsorandomseed = os.time()
|
||||||
math.randomseed(tonumber(notsorandomseed, 16))
|
math.randomseed(notsorandomseed)
|
||||||
|
notsorandomseed = love.data.encode("string", "hex", love.data.hash("sha256", notsorandomseed))
|
||||||
generate_museum(0,0,0)
|
generate_museum(0,0,0)
|
||||||
end
|
end
|
||||||
if key == "escape" then
|
if key == "escape" then
|
||||||
|
|
Loading…
Reference in New Issue