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

beta.r3js.org
-=yb4f310 2018-03-12 15:56:49 +01:00
parent 536f7c1bc9
commit 5d613806ff
1 changed files with 3 additions and 2 deletions

View File

@ -139,7 +139,7 @@ GameLib.CustomCode.SnakeBody = function(
this.mesh = mesh; this.mesh = mesh;
this.applyPositionToMesh(); this.applyPositionToMesh();
}; }.bind(this);
GameLib.CustomCode.SnakeBody.prototype.clone = function() { GameLib.CustomCode.SnakeBody.prototype.clone = function() {
return new GameLib.CustomCode.SnakeBody( return new GameLib.CustomCode.SnakeBody(
@ -186,9 +186,10 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
this.snake = this.snake.reduce( this.snake = this.snake.reduce(
function(result, body, index) { function(result, body, index) {
if ((index + 1) >= this.snake.length) { if ((index + 1) >= this.snake.length) {
/** /**
* do nothing * Do nothing
*/ */
} else { } else {
/** /**