diff --git a/scripts/lib/game.js b/scripts/lib/game.js index 77b1f322..eda52ccd 100644 --- a/scripts/lib/game.js +++ b/scripts/lib/game.js @@ -202,6 +202,10 @@ function Sprite(image,x,y,rot,w,h){ return spr.moveXY(localX, localY); } + spr.moveLocalVec = function(vector){ + return spr.moveLocalXY(vector.x, vector.y); + } + spr.rescale = function(scale){ spr.area.rescale(scale); return spr;