scaling now works? yay?

This commit is contained in:
Simon Kellet 2024-08-02 17:01:21 +01:00
parent 7da12d3035
commit 7252c3cd2c

View File

@ -13,8 +13,11 @@ local function drawHealth()
end
function DrawGame()
local curWidth, curHeight = love.graphics.getDimensions()
--STI
GameMap:draw()
love.graphics.scale(_G.X_SCALE, _G.Y_SCALE)
GameMap:draw(0, 0, _G.X_SCALE, _G.Y_SCALE)
GameMap:resize(curWidth / _G.X_SCALE, curHeight / _G.Y_SCALE)
-- WindField
if DebugFlag then