From 4ccf9903834c01d4535ad8852a37c2b0eac4881a Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期四, 23 十二月 2021 14:40:06 +0800
Subject: [PATCH] #

---
 static/js/app.js                |    4 ++--
 views/index.html                |    6 ++++--
 static/js/object/StoreConvey.js |   29 ++++++++---------------------
 static/js/data/BuildingData.js  |   10 +++++-----
 4 files changed, 19 insertions(+), 30 deletions(-)

diff --git a/static/js/app.js b/static/js/app.js
index 8eed770..377b87b 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -79,12 +79,12 @@
 				// this.camera.position.z = 600;
 				// //鐩告満鐨勬湞鍚�
 				// this.camera.lookAt(0, 0, 0);
-				this.camera.position.set( - 350, 1070, 1550 );
+				this.camera.position.set( -350, 650, 1100 );
 				this.camera.lookAt( this.scene.position );
 				//灏嗙浉鏈烘斁鍒板満鏅腑
 				this.scene.add(this.camera);
 			} else {
-				this.camera.position.set( - 350, 1070, 1550 );
+				this.camera.position.set( -350, 650, 1100 );
 				this.camera.lookAt( this.scene.position );
 			}
 		}
diff --git a/static/js/data/BuildingData.js b/static/js/data/BuildingData.js
index eaf8a0c..8fe596a 100644
--- a/static/js/data/BuildingData.js
+++ b/static/js/data/BuildingData.js
@@ -4,12 +4,12 @@
             objectName: 'floor',
             objectType: 'cube',
             length: 2750,
-            width: 1200,
+            width: 800,
             height: 1,
             position: {
                 x: 1375,
-                y: 1,
-                z: 600
+                y: 0,
+                z: 400
             },
             style:{
                 color: 0x5F7480,
@@ -19,12 +19,12 @@
             objectName: 'floor',
             objectType: 'cube',
             length: 2750,
-            width: 1200,
+            width: 800,
             height: 1,
             position: {
                 x: 1375,
                 y: 310,
-                z: 600
+                z: 400
             },
             style:{
                 color: 0x5F7480,
diff --git a/static/js/object/StoreConvey.js b/static/js/object/StoreConvey.js
index e3c5bf1..f01560d 100644
--- a/static/js/object/StoreConvey.js
+++ b/static/js/object/StoreConvey.js
@@ -2,9 +2,9 @@
 import {OBJLoader} from "../lib/OBJLoader.js";
 import {Color} from "../three.module.js";
 
-const xOffset = -1658;
-const yOffset = -553;
-const zOffset = -1800;
+const xOffset = 35;
+const yOffset = 44;
+const zOffset = 28;
 
 const xOffset0 = -1407;
 const yOffset0 = 0;
@@ -73,19 +73,6 @@
                         object.addObject( clone );
                     }
 
-                    for (let i = 0; i<24; i++) {
-                        let clone = chain.clone();
-                        // roller.name = option.crnNo + "-body";
-                        let offset = 0;
-                        if (i % 2 === 0) {
-                            offset = 90;
-                        }
-                        clone.position.x = xOffset0 + 56 + offset + Math.floor(i/2)*230;
-                        clone.position.y = yOffset0 + 310;
-                        clone.position.z = zOffset0 + 39 + 82;
-                        object.addObject( clone );
-                    }
-
                 }, null, null );
         });
 
@@ -102,17 +89,17 @@
                     roller.traverse (function (child) {
                         if (child instanceof THREE.Mesh) {
                             child.material = new THREE.MeshLambertMaterial({
-                                color: 0xCD6839
+                                color: 0xAAAAAA
                             });
                         }
                     });
 
-                    roller.scale.set(1000, 1000, 1000);
-                    roller.rotateY(- Math.PI / 2);
+                    roller.scale.set(55, 45, 55);
+                    // roller.rotateY(- Math.PI / 2);
                     // roller.name = option.crnNo + "-body";
-                    roller.position.x = xOffset;
+                    roller.position.x = xOffset + 60;
                     roller.position.y = yOffset;
-                    roller.position.z = zOffset;
+                    roller.position.z = zOffset + 140;
                     // object.addObject( roller );
 
     			}, null, null );
diff --git a/views/index.html b/views/index.html
index afad293..ebc3b86 100644
--- a/views/index.html
+++ b/views/index.html
@@ -101,7 +101,6 @@
     document.getElementById("btn-lock").addEventListener('click', function () {
         player.lockControl();
         removeClass(document.getElementById("ship-info-btn"), "show");
-        removeClass(document.getElementById("title-box"), "show");
         document.getElementById("ship-type-ul").style.transform = 'translateY(-60px)';
     }, false);
 
@@ -149,7 +148,10 @@
                 $("#ship-info-btn").data("type", 2).addClass("show");
                 $("#ship-info-btn #btn-lock").css("z-index", "10");
                 $("#menu li").css("transition", "all 200ms !important");
-            }, 3000);   // 1000
+                setTimeout(function () {
+                    removeClass(document.getElementById("title-box"), "show");
+                }, 10000);
+            }, 1000);   // 1000
         });
         $("#title-box, #logo").addClass("show");
         $("#ship-info-btn").removeClass("show");

--
Gitblit v1.9.1