Almost there

This commit is contained in:
Devine Lu Linvega
2017-11-05 14:52:05 +14:00
parent 6a4dae83ae
commit 6b8e08e41f
32 changed files with 580 additions and 41 deletions

15
sources/scripts/pos.js Normal file
View File

@@ -0,0 +1,15 @@
function Pos(x,y)
{
this.x = x;
this.y = y;
this.toString = function()
{
return x+","+y;
}
this.sub = function(pos2)
{
return new Pos(this.x - pos2.x,this.y - pos2.y)
}
}