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

beta.r3js.org
-=yb4f310 2018-03-15 15:33:53 +01:00
parent cd407ead0f
commit 50dde13a4b
1 changed files with 3 additions and 1 deletions

View File

@ -256,6 +256,8 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
body.advance(
this.state.orientation
);
backup.orientation = body.orientation;
}
if (index > 0) {
@ -293,7 +295,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
}
if (
body.orientation !== this.snake[index-1].orientation &&
body.orientation !== backup.orientation &&
(index + 1) < this.snake.length
) {
/**