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

beta.r3js.org
-=yb4f310 2018-03-12 20:49:33 +01:00
parent 5d613806ff
commit 8079273a9a
1 changed files with 13 additions and 3 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(
@ -243,8 +243,18 @@ GameLib.Event.Subscribe(
) )
this.snake = [ this.snake = [
new GameLib.CustomCode.SnakeBody(GameLib.CustomCode.BODY_TYPE_HEAD), new GameLib.CustomCode.SnakeBody(
new GameLib.CustomCode.SnakeBody(GameLib.CustomCode.BODY_TYPE_TAIL) GameLib.CustomCode.BODY_TYPE_HEAD,
null,
null,
this.meshEnd
),
new GameLib.CustomCode.SnakeBody(
GameLib.CustomCode.BODY_TYPE_TAIL,
null,
null,
this.meshEnd
)
]; ];
/** /**