From f7811309bcdb66467aed6a5c8c3870d646b5783a Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 13 Aug 2016 18:19:34 +0200 Subject: floored grid for players and platforms --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.lua') diff --git a/main.lua b/main.lua index 8736257..f91550c 100644 --- a/main.lua +++ b/main.lua @@ -17,7 +17,7 @@ function getScale() --return math.max(1, math.floor(love.graphics.getWidth() / 320)-1, math.floor(love.graphics.getHeight() / 180)-1) end function getRealScale() - return math.max(love.graphics.getWidth() / 320, love.graphics.getHeight() / 180) + return math.max(1, math.floor(math.max(love.graphics.getWidth() / 320, love.graphics.getHeight() / 180))) end -- Should be moved to Sprite metaclass (non-existent yet) function newImage(path) -- cgit v1.1