added resizing of the window

This commit is contained in:
cantbesure1
2017-11-12 12:14:00 -08:00
parent e3ac3c6185
commit 5f7e5952fb
8 changed files with 115 additions and 49 deletions

View File

@@ -22,4 +22,9 @@ function Pos(x,y)
{
return Math.abs(pos2.x) == Math.abs(this.x) && Math.abs(pos2.y) == Math.abs(this.y);
}
this.scale = function(a)
{
return new Pos(this.x*a,this.y*a)
}
}