First commit, WIP

This commit is contained in:
aur9ra
2023-07-14 17:54:35 -07:00
parent 52d4aeb3d0
commit 4478c07acf
12 changed files with 85 additions and 26 deletions

View File

@@ -980,10 +980,10 @@ end
function GameMode:drawBackground()
local id = self:getBackground()
if type(id) == "number" then id = clamp(id, 0, #backgrounds) end
-- if type(id) == "number" then id = clamp(id, 0, #backgrounds) end
love.graphics.setColor(1, 1, 1, 1)
love.graphics.draw(
backgrounds[id],
fetchBackgroundAndLoop(id),
0, 0, 0,
0.5, 0.5
)