Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 275 bytes modified
parent
42b802d7f0
commit
374ee2c16a
|
@ -249,6 +249,10 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
||||||
tail.position.y = parent.position.y;
|
tail.position.y = parent.position.y;
|
||||||
tail.orientation = parent.orientation;
|
tail.orientation = parent.orientation;
|
||||||
|
|
||||||
|
if (this.snake.length === 1) {
|
||||||
|
console.log('before head');
|
||||||
|
}
|
||||||
|
|
||||||
tail.applyToMesh();
|
tail.applyToMesh();
|
||||||
|
|
||||||
newSnake.unshift(tail);
|
newSnake.unshift(tail);
|
||||||
|
|
Loading…
Reference in New Issue