Fixed pause, drops not disappearing and more bugs

This commit is contained in:
clb92
2016-07-05 22:25:29 +02:00
parent 55bfd6e774
commit 83375598df
3 changed files with 53 additions and 6 deletions

View File

@@ -72,6 +72,7 @@ Snake.prototype.move = function() {
var effect = this.game.resources.checkLocation(newX, newY);
if (effect !== null) {
this.game.applyEffect(effect);
this.game.resources.removeDrop(newX, newY);
}
for (var i = 0; i < this.locations.length; i++) {