summaryrefslogtreecommitdiffhomepage
path: root/main.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-06-26 21:04:31 +0200
committerAki <nthirtyone@gmail.com>2016-06-26 21:04:31 +0200
commit71db337cb1928080f78b6b14646cce3731ecff5a (patch)
tree40c7ccfdcf28bf159fc0f1ba10b317232b00e580 /main.lua
parent7524f0e1a5ed2c1fb20201ffecb7e31c0709bb98 (diff)
downloadroflnauts-71db337cb1928080f78b6b14646cce3731ecff5a.zip
roflnauts-71db337cb1928080f78b6b14646cce3731ecff5a.tar.gz
roflnauts-71db337cb1928080f78b6b14646cce3731ecff5a.tar.bz2
Scaled background image
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua3
1 files changed, 3 insertions, 0 deletions
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"