Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 0 bytes modified
parent
1a0a7043dd
commit
024f02e1c1
|
@ -1235,19 +1235,19 @@ GameLib.CustomCode.prototype.restore = function() {
|
||||||
|
|
||||||
|
|
||||||
if (clone.orientation === GameLib.CustomCode.ORIENTATION_UP) {
|
if (clone.orientation === GameLib.CustomCode.ORIENTATION_UP) {
|
||||||
clone.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;
|
clone.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 (clone.orientation === GameLib.CustomCode.ORIENTATION_LEFT) {
|
if (clone.orientation === GameLib.CustomCode.ORIENTATION_LEFT) {
|
||||||
clone.backupMesh.position.x += 0.5 * GameLib.CustomCode.BODY_SCALE_X;
|
clone.backupMesh.position.x -= 0.5 * GameLib.CustomCode.BODY_SCALE_X;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (clone.orientation === GameLib.CustomCode.ORIENTATION_RIGHT) {
|
if (clone.orientation === GameLib.CustomCode.ORIENTATION_RIGHT) {
|
||||||
clone.backupMesh.position.x -= 0.5 * GameLib.CustomCode.BODY_SCALE_X;
|
clone.backupMesh.position.x += 0.5 * GameLib.CustomCode.BODY_SCALE_X;
|
||||||
}
|
}
|
||||||
|
|
||||||
clone.backupMesh.visible = true;
|
clone.backupMesh.visible = true;
|
||||||
|
|
Loading…
Reference in New Issue