Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 52 bytes modified

beta.r3js.org
-=yb4f310 2018-03-22 20:15:41 +01:00
parent 91f81a49ae
commit 1372b3f4f7
1 changed files with 3 additions and 4 deletions

View File

@ -964,8 +964,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
);
this.grid[backup.position.x][backup.position.y] = new GameLib.CustomCode.GameObject();
this.grid[body.position.x][body.position.y] = body;
if (!advanced) {
this.explode(body.position);
@ -980,7 +979,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
break;
case GameLib.CustomCode.OBJECT_TYPE_FOOD :
this.extend(gameObject, backup.position, backup.orientation);
this.visualizeGrid();
break;
case GameLib.CustomCode.OBJECT_TYPE_POWERUP:
this.powerup(gameObject);
@ -991,7 +990,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
}
}
this.visualizeGrid();
backup.orientation = body.orientation;
backup.flip = body.flip;