basic grid implementation with initial setup

This commit is contained in:
Gabriele Cirulli
2014-03-08 12:50:45 +01:00
parent 0970a722ba
commit cf31e146aa
6 changed files with 131 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
function Tile(position, value) {
this.x = position.x;
this.y = position.y;
this.value = value || 2;
this.previousPosition = null;
}