Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 55 bytes modified
parent
88ad9a058e
commit
cd407ead0f
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue