From 71db337cb1928080f78b6b14646cce3731ecff5a Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 26 Jun 2016 21:04:31 +0200 Subject: Scaled background image --- main.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.lua') diff --git a/main.lua b/main.lua index d5552d0..930a57b 100644 --- a/main.lua +++ b/main.lua @@ -10,6 +10,9 @@ end 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) +end -- Require require "world" -- cgit v1.1