Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 0 bytes modified
parent
9e6a90fa1b
commit
032d70940a
|
@ -1254,19 +1254,19 @@ GameLib.CustomCode.prototype.restore = function() {
|
||||||
|
|
||||||
|
|
||||||
if (body.orientation === GameLib.CustomCode.ORIENTATION_UP) {
|
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;
|
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) {
|
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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue