From 8c93f751e6e5c224a06b401e63345f7927be1f8c Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 15 三月 2024 12:59:44 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/player.js |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/player.js b/zy-asrs-flow/src/pages/map/player.js
index 6f2ffd0..f7503c9 100644
--- a/zy-asrs-flow/src/pages/map/player.js
+++ b/zy-asrs-flow/src/pages/map/player.js
@@ -22,7 +22,7 @@
         this.activateMapScale();
         this.activateMapPan();
         this.showCoordinates();
-        this.appTicker();
+        this.getStartedTicker();
     }
 
     activateMapEvent = (leftEvent, rightEvent) => {
@@ -228,12 +228,12 @@
 
         const starTexture = PIXI.Texture.from(star);
 
-        const starAmount = 500;
+        const starAmount = 300;
         let cameraZ = 0;
         const fov = 20;
         const baseSpeed = 0.025;
         let speed = 0;
-        let warpSpeed = 0;
+        let warpSpeed = 1;
         const starStretch = 5;
         const starBaseSize = 0.05;
 
@@ -248,7 +248,7 @@
             };
             star.sprite.anchor.x = 0.5;
             star.sprite.anchor.y = 0.7;
-            star.sprite.tint = 0x000000; // 搴旂敤涓�涓粦鑹叉护闀�
+            star.sprite.tint = 0x8395a7; // filter
             randomizeStar(star, true);
             this.starryContainer.addChild(star.sprite);
             stars.push(star);
@@ -260,7 +260,6 @@
 
 
         this.starryTicker = (delta) => {
-            console.log(1);
             speed += (warpSpeed - speed) / 20;
             cameraZ += delta * 10 * (speed + baseSpeed);
             for (let i = 0; i < starAmount; i++) {
@@ -295,7 +294,7 @@
     }
 
     hideStarryBackground = () => {
-        if(this.starryTicker) {
+        if (this.starryTicker) {
             this.app.ticker.remove(this.starryTicker);
             this.starryTicker = null;
         }
@@ -316,8 +315,10 @@
         this.didClickSprite = value;
     }
 
-    appTicker = () => {
-        TWEEDLE.Group.shared.update();
+    getStartedTicker = () => {
+        this.app.ticker.add((delta) => {
+            TWEEDLE.Group.shared.update();
+        });
     }
 
 }

--
Gitblit v1.9.1