diff options
author | Aki <nthirtyone@gmail.com> | 2016-08-13 21:15:09 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-08-13 21:15:09 +0200 |
commit | 753e0ef9cc4e5c585bd832ba297b9847ed4cd790 (patch) | |
tree | 334583c5aa65e30c61ccae3cd8d1789ca9aefcd9 | |
parent | 99d537f66d34c5e87e4e395942a4241eeebd2b12 (diff) | |
download | roflnauts-753e0ef9cc4e5c585bd832ba297b9847ed4cd790.zip roflnauts-753e0ef9cc4e5c585bd832ba297b9847ed4cd790.tar.gz roflnauts-753e0ef9cc4e5c585bd832ba297b9847ed4cd790.tar.bz2 |
Scaling changed
-rw-r--r-- | main.lua | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -13,11 +13,10 @@ end -- Should be moved to scene/camera function getScale() - return getRealScale() - --return math.max(1, math.floor(love.graphics.getWidth() / 320)-1, math.floor(love.graphics.getHeight() / 180)-1) + return math.max(1, math.floor(math.max(love.graphics.getWidth() / 320, love.graphics.getHeight() / 180))) end function getRealScale() - return math.max(1, math.floor(math.max(love.graphics.getWidth() / 320, love.graphics.getHeight() / 180))) + return math.max(1, math.max(love.graphics.getWidth() / 320, love.graphics.getHeight() / 180)) end -- Should be moved to Sprite metaclass (non-existent yet) function newImage(path) |