Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 88 bytes modified
parent
657e676ae5
commit
335ce5dd42
|
@ -192,8 +192,12 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
||||||
|
|
||||||
if ((index + 1) >= this.snake.length) {
|
if ((index + 1) >= this.snake.length) {
|
||||||
/**
|
/**
|
||||||
* Do nothing
|
* Pop it
|
||||||
*/
|
*/
|
||||||
|
body.mesh.geometry = null;
|
||||||
|
body.mesh.materials = null;
|
||||||
|
body.mesh.remove();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/**
|
/**
|
||||||
* Move the body over
|
* Move the body over
|
||||||
|
|
Loading…
Reference in New Issue