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
1 changed files with 4 additions and 0 deletions

View File

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