| | |
| | | import * as PIXI from 'pixi.js'; |
| | | import * as TWEEDLE from 'tweedle.js'; |
| | | import * as Tool from './tool'; |
| | | import star from '/img/map/star.png' |
| | | import star from '/img/map/star.png'; |
| | | import { DEVICE_TYPE } from './constants'; |
| | | |
| | | export default class Player { |
| | | |
| | |
| | | this.mapContainer.scale.set(this.scale); |
| | | |
| | | this.mapContainer.children.forEach(child => { |
| | | // child.scale.set(1 / this.scale); // 防止图标变小 |
| | | // child.scale.set(1 / (this.scale * 1)); // 防止图标变小 |
| | | |
| | | // switch (child.data?.type) { |
| | | // case DEVICE_TYPE.POINT: |
| | | // child.scale.set(1 / (this.scale * 20)); |
| | | // break |
| | | // default: |
| | | // break |
| | | // } |
| | | }); |
| | | }); |
| | | } |