Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 28 bytes modified
parent
44083d53b4
commit
89169aa1fe
|
@ -265,6 +265,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
|||
this.state.orientation
|
||||
);
|
||||
|
||||
backup.orientation = body.orientation;
|
||||
}
|
||||
|
||||
if (index > 0) {
|
||||
|
@ -304,7 +305,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
|||
}
|
||||
|
||||
if (
|
||||
body.orientation !== this.snake[index - 1].orientation
|
||||
body.orientation !== temp.orientation
|
||||
) {
|
||||
|
||||
if ((index + 1) < this.snake.length) {
|
||||
|
@ -320,7 +321,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
|||
body.mesh = this.meshBreadCorner.clone();
|
||||
}
|
||||
|
||||
body.orientation = this.snake[index - 1].orientation;
|
||||
//body.orientation = this.snake[index - 1].orientation;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue