#
luxiaotao1123
2024-11-04 7f70cb15d035f0c233b9e62b9e43aa985317c908
zy-acs-flow/src/map/player.js
@@ -1,7 +1,7 @@
import * as PIXI from 'pixi.js';
import * as TWEEDLE from 'tweedle.js';
import * as Tool from './tool';
import star from '/public/img/map/star.png'
import star from '/img/map/star.png'
export default class Player {
@@ -376,9 +376,10 @@
    }
    startupTicker = () => {
        this.app.ticker.add((delta) => {
        this.tweedle = (delta) => {
            TWEEDLE.Group.shared.update();
        });
        }
        this.app.ticker.add(this.tweedle);
    }
    resize = (width, height) => {
@@ -386,6 +387,8 @@
    }
    destroy = () => {
        TWEEDLE.Group.shared.removeAll();
        this.app.ticker.remove(this.tweedle);
        this.app.destroy(true, { children: true });
    }