modules/world: fix scalling function
actually adding the scaling would be nice.
This commit is contained in:
parent
1a669029ea
commit
ce2a89b295
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue