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

beta.r3js.org
-=yb4f310 2018-03-24 13:07:07 +01:00
parent 9e6a90fa1b
commit 032d70940a
1 changed files with 6 additions and 6 deletions

View File

@ -1254,19 +1254,19 @@ GameLib.CustomCode.prototype.restore = function() {
if (body.orientation === GameLib.CustomCode.ORIENTATION_UP) {
body.backupMesh.position.y -= 0.5 * GameLib.CustomCode.BODY_SCALE_Y;
}
if (body.orientation === GameLib.CustomCode.ORIENTATION_DOWN) {
body.backupMesh.position.y += 0.5 * GameLib.CustomCode.BODY_SCALE_Y;
}
if (body.orientation === GameLib.CustomCode.ORIENTATION_DOWN) {
body.backupMesh.position.y -= 0.5 * GameLib.CustomCode.BODY_SCALE_Y;
}
if (body.orientation === GameLib.CustomCode.ORIENTATION_LEFT) {
body.backupMesh.position.x += 0.5 * GameLib.CustomCode.BODY_SCALE_X;
body.backupMesh.position.x -= 0.5 * GameLib.CustomCode.BODY_SCALE_X;
}
if (body.orientation === GameLib.CustomCode.ORIENTATION_RIGHT) {
body.backupMesh.position.x -= 0.5 * GameLib.CustomCode.BODY_SCALE_X;
body.backupMesh.position.x += 0.5 * GameLib.CustomCode.BODY_SCALE_X;
}