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