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

beta.r3js.org
-=yb4f310 2018-03-24 13:32:04 +01:00
parent 7a17759097
commit e8a8075510
1 changed files with 8 additions and 8 deletions

View File

@ -1267,20 +1267,20 @@ GameLib.CustomCode.prototype.restore = function() {
*/
if (body.orientation === GameLib.CustomCode.ORIENTATION_UP) {
body.backupMesh.position.y += 0.5 * GameLib.CustomCode.BODY_SCALE_Y;
if (clone.orientation === GameLib.CustomCode.ORIENTATION_UP) {
clone.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 (clone.orientation === GameLib.CustomCode.ORIENTATION_DOWN) {
clone.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;
if (clone.orientation === GameLib.CustomCode.ORIENTATION_LEFT) {
clone.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;
if (clone.orientation === GameLib.CustomCode.ORIENTATION_RIGHT) {
clone.backupMesh.position.x += 0.5 * GameLib.CustomCode.BODY_SCALE_X;
}