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

beta.r3js.org
-=yb4f310 2018-03-19 10:25:31 +01:00
parent 77d3d0de62
commit e28b1d833b
1 changed files with 6 additions and 2 deletions

View File

@ -146,8 +146,6 @@ GameLib.CustomCode.SnakeBody = function(
this.mesh = mesh.clone();
this.mesh.useQuaternion = false;
this.animation.meshes.push(this.mesh);
if (GameLib.Utils.UndefinedOrNull(position)) {
position = {
x : Math.round(GameLib.CustomCode.GRID_WIDTH / 2),
@ -393,6 +391,12 @@ GameLib.Event.Subscribe(
)
];
this.animation.meshes.push(this.snake[0].mesh);
this.animation.meshes.push(this.snake[1].mesh);
this.animation.meshes.push(this.snake[2].mesh);
this.animation.meshes.push(this.snake[3].mesh);
/**
* Cleanup grid
*