diff options
author | Aki <nthirtyone@gmail.com> | 2016-08-13 18:19:34 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-08-13 18:19:34 +0200 |
commit | f7811309bcdb66467aed6a5c8c3870d646b5783a (patch) | |
tree | 82895699ffbd3e555f8f3c33b7c451280a4224d2 /main.lua | |
parent | 6018c668087bf49629fd95b3d5ca01213e4cc340 (diff) | |
download | roflnauts-f7811309bcdb66467aed6a5c8c3870d646b5783a.zip roflnauts-f7811309bcdb66467aed6a5c8c3870d646b5783a.tar.gz roflnauts-f7811309bcdb66467aed6a5c8c3870d646b5783a.tar.bz2 |
floored grid for players and platforms
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |