Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 165 bytes modified
parent
77d3d0de62
commit
e28b1d833b
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue