mirror of
https://github.com/clb92/simple-js-snake.git
synced 2025-12-06 01:32:03 +01:00
Fixed pause, drops not disappearing and more bugs
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user