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

beta.r3js.org
-=yb4f310 2018-03-12 21:07:26 +01:00
parent 657e676ae5
commit 335ce5dd42
1 changed files with 5 additions and 1 deletions

View File

@ -192,8 +192,12 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
if ((index + 1) >= this.snake.length) {
/**
* Do nothing
* Pop it
*/
body.mesh.geometry = null;
body.mesh.materials = null;
body.mesh.remove();
} else {
/**
* Move the body over