Skip to content

Commit

Permalink
Added moveLocalVec()
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfyxon committed Dec 18, 2023
1 parent 4706c44 commit 83a99a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/lib/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 83a99a3

Please sign in to comment.