remove debug logging
This commit is contained in:
@@ -79,14 +79,12 @@ GameManager.prototype.move = function (direction) {
|
|||||||
|
|
||||||
if (tile) {
|
if (tile) {
|
||||||
var pos = self.findFarthestPosition(cell, vector);
|
var pos = self.findFarthestPosition(cell, vector);
|
||||||
console.log(pos);
|
|
||||||
self.moveTile(tile, pos);
|
self.moveTile(tile, pos);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.addRandomTile();
|
this.addRandomTile();
|
||||||
console.log(16 - this.grid.availableCells().length);
|
|
||||||
this.actuate();
|
this.actuate();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ HTMLActuator.prototype.addTile = function (tile) {
|
|||||||
|
|
||||||
if (tile.previousPosition) {
|
if (tile.previousPosition) {
|
||||||
window.requestAnimationFrame(function () {
|
window.requestAnimationFrame(function () {
|
||||||
// console.log( + " === " + positionClass);
|
|
||||||
element.classList.remove(element.classList[2]);
|
element.classList.remove(element.classList[2]);
|
||||||
element.classList.add(self.positionClass({ x: tile.x, y: tile.y }));
|
element.classList.add(self.positionClass({ x: tile.x, y: tile.y }));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user