Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 8 bytes modified
parent
7a17759097
commit
e8a8075510
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue