diff options
author | Aki <nthirtyone@gmail.com> | 2016-06-26 21:04:31 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-06-26 21:04:31 +0200 |
commit | 71db337cb1928080f78b6b14646cce3731ecff5a (patch) | |
tree | 40c7ccfdcf28bf159fc0f1ba10b317232b00e580 /main.lua | |
parent | 7524f0e1a5ed2c1fb20201ffecb7e31c0709bb98 (diff) | |
download | roflnauts-71db337cb1928080f78b6b14646cce3731ecff5a.zip roflnauts-71db337cb1928080f78b6b14646cce3731ecff5a.tar.gz roflnauts-71db337cb1928080f78b6b14646cce3731ecff5a.tar.bz2 |
Scaled background image
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" |