From cc557e0d76bf15ed41dbe69bda223f3509ece40a Mon Sep 17 00:00:00 2001 From: Eltrac Date: Tue, 18 Feb 2025 20:41:34 +0800 Subject: fix: reinitialize seed of pseudo-random generator --- main.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.lua') diff --git a/main.lua b/main.lua index 09bb082..433dcf7 100644 --- a/main.lua +++ b/main.lua @@ -29,6 +29,8 @@ function love.load() renderer:add("objects", nil, drawObject.loot) renderer:add("ui", nil, drawUI.ammoBar) + math.randomseed(os.time()) + initGame() end -- cgit v1.2.3