summaryrefslogtreecommitdiffhomepage
path: root/not/World.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-13 07:48:06 +0200
committerAki <nthirtyone@gmail.com>2017-09-13 07:48:06 +0200
commit02864ba303beda496c85e4f0503b3f94d32fd30d (patch)
treeff1a0ab0586752bb50efcc7c1d50adbbb57f5317 /not/World.lua
parentbefcd00e185fb0c1eb60f28dd5215e1cd88dfa18 (diff)
downloadroflnauts-02864ba303beda496c85e4f0503b3f94d32fd30d.zip
roflnauts-02864ba303beda496c85e4f0503b3f94d32fd30d.tar.gz
roflnauts-02864ba303beda496c85e4f0503b3f94d32fd30d.tar.bz2
Viewports dimensions should be scaled
Diffstat (limited to 'not/World.lua')
-rw-r--r--not/World.lua2
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