Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 67 bytes modified
parent
91897521b4
commit
3e6c1a7d8c
|
@ -979,13 +979,11 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
||||||
break;
|
break;
|
||||||
case GameLib.CustomCode.OBJECT_TYPE_FOOD :
|
case GameLib.CustomCode.OBJECT_TYPE_FOOD :
|
||||||
this.extend(gameObject, backup.position, backup.orientation);
|
this.extend(gameObject, backup.position, backup.orientation);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case GameLib.CustomCode.OBJECT_TYPE_POWERUP:
|
case GameLib.CustomCode.OBJECT_TYPE_POWERUP:
|
||||||
this.powerup(gameObject);
|
this.powerup(gameObject);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
this.grid[body.position.x][body.position.y] = body;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue