diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-13 07:48:06 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-13 07:48:06 +0200 |
commit | 02864ba303beda496c85e4f0503b3f94d32fd30d (patch) | |
tree | ff1a0ab0586752bb50efcc7c1d50adbbb57f5317 | |
parent | befcd00e185fb0c1eb60f28dd5215e1cd88dfa18 (diff) | |
download | roflnauts-02864ba303beda496c85e4f0503b3f94d32fd30d.zip roflnauts-02864ba303beda496c85e4f0503b3f94d32fd30d.tar.gz roflnauts-02864ba303beda496c85e4f0503b3f94d32fd30d.tar.bz2 |
Viewports dimensions should be scaled
-rw-r--r-- | not/World.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/not/World.lua b/not/World.lua index a4d0f97..e0b64c5 100644 --- a/not/World.lua +++ b/not/World.lua @@ -95,6 +95,8 @@ function World:buildMap () if op.animations then bg:setAnimationsList(op.animations) _,_,width,height = bg:getAnimations()[1]:getViewport() + width = width * getScale() + height = height * getScale() end bg.layer = self:addLayer(width, height, op.ratio) end |