Replay system v3 + love.math.random migration

This commit is contained in:
Ishaan Bhardwaj
2021-12-08 21:23:00 -05:00
parent 9b41e56135
commit 89c7205347
11 changed files with 50 additions and 44 deletions

View File

@@ -10,7 +10,7 @@ function Bag7Randomizer:generatePiece()
if next(self.bag) == nil then
self.bag = {"I", "J", "L", "O", "S", "T", "Z"}
end
local x = math.random(table.getn(self.bag))
local x = love.math.random(table.getn(self.bag))
return table.remove(self.bag, x)
end