modules/world: fix scalling function

actually adding the scaling would be nice.
This commit is contained in:
Kazhnuz 2019-05-01 11:16:37 +02:00
parent 1a669029ea
commit ce2a89b295

View file

@ -175,10 +175,14 @@ end
function Actor2D:setSpriteScallingX(sx) function Actor2D:setSpriteScallingX(sx)
local sx = sx or 1 local sx = sx or 1
self.sprite.sx = sx
end end
function Actor2D:setSpriteScallingY(sy) function Actor2D:setSpriteScallingY(sy)
local sy = sy or 1 local sy = sy or 1
self.sprite.sy = sy
end end
function Actor2D:drawSprite(x, y, r, sx, sy, ox, oy, kx, ky) function Actor2D:drawSprite(x, y, r, sx, sy, ox, oy, kx, ky)