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

beta.r3js.org
-=yb4f310 2018-03-23 13:40:53 +01:00
parent 58f154ea6a
commit 7609512b70
1 changed files with 5 additions and 2 deletions

View File

@ -1139,10 +1139,13 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
body.mesh.updateInstance('visible'); body.mesh.updateInstance('visible');
body.applyToMesh(); body.applyToMesh();
}
this.explode(backup.position);
} else {
this.explode(body.position); this.explode(body.position);
} }
}
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);