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

beta.r3js.org
-=yb4f310 2018-03-19 11:01:05 +01:00
parent b722e91dbd
commit 9e8b308b2c
1 changed files with 6 additions and 2 deletions

View File

@ -266,7 +266,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
body.orientation = backup.orientation;
body.flip = backup.flip;
backup = temp;
if (body.backupMesh) {
/**
@ -297,7 +297,9 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
if ((index + 1) < this.snake.length) {
/**
* Our orientation changed - we should make a corner
*/
*/
body.applyToMesh();
body.backupMesh = body.mesh;
@ -310,6 +312,8 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
}
}
backup = temp;
}
body.applyToMesh();