From 7252c3cd2c0b5a4fb40b774226ceb54beeac2f44 Mon Sep 17 00:00:00 2001 From: Simon Kellet Date: Fri, 2 Aug 2024 17:01:21 +0100 Subject: [PATCH] scaling now works? yay? --- Game/DrawGame.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Game/DrawGame.lua b/Game/DrawGame.lua index 4c6bc0e..3ac0f09 100644 --- a/Game/DrawGame.lua +++ b/Game/DrawGame.lua @@ -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