implement tile movement

This commit is contained in:
Gabriele Cirulli
2014-03-09 14:32:30 +01:00
parent b7476f1f62
commit b20e26e3bd
10 changed files with 286 additions and 36 deletions
+4
View File
@@ -5,3 +5,7 @@ function Tile(position, value) {
this.previousPosition = null;
}
Tile.prototype.savePosition = function () {
this.previousPosition = { x: this.x, y: this.y };
};