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

beta.r3js.org
-=yb4f310 2018-03-15 13:12:13 +01:00
parent 42b802d7f0
commit 374ee2c16a
1 changed files with 41 additions and 37 deletions

View File

@ -249,6 +249,10 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
tail.position.y = parent.position.y;
tail.orientation = parent.orientation;
if (this.snake.length === 1) {
console.log('before head');
}
tail.applyToMesh();
newSnake.unshift(tail);