Added support for backgrounds that are not 1280x960

This commit is contained in:
Ishaan Bhardwaj
2023-07-16 01:49:26 -04:00
parent 1556b247fe
commit 2166a3c6d8
12 changed files with 26 additions and 61 deletions

View File

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