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

beta.r3js.org
-=yb4f310 2018-03-15 15:32:34 +01:00
parent 88ad9a058e
commit cd407ead0f
1 changed files with 4 additions and 1 deletions

View File

@ -292,7 +292,10 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
body.mesh.updateInstance('visible'); body.mesh.updateInstance('visible');
} }
if (body.orientation !== this.snake[index-1].orientation) { if (
body.orientation !== this.snake[index-1].orientation &&
(index + 1) < this.snake.length
) {
/** /**
* Our orientation changed - we should make a corner * Our orientation changed - we should make a corner
*/ */