| | |
| | | this.activateMapScale(); |
| | | this.activateMapPan(); |
| | | this.showCoordinates(); |
| | | this.appTicker(); |
| | | this.getStartedTicker(); |
| | | } |
| | | |
| | | activateMapEvent = (leftEvent, rightEvent) => { |
| | |
| | | |
| | | |
| | | this.starryTicker = (delta) => { |
| | | console.log(1); |
| | | speed += (warpSpeed - speed) / 20; |
| | | cameraZ += delta * 10 * (speed + baseSpeed); |
| | | for (let i = 0; i < starAmount; i++) { |
| | |
| | | } |
| | | |
| | | hideStarryBackground = () => { |
| | | if(this.starryTicker) { |
| | | if (this.starryTicker) { |
| | | this.app.ticker.remove(this.starryTicker); |
| | | this.starryTicker = null; |
| | | } |
| | |
| | | this.didClickSprite = value; |
| | | } |
| | | |
| | | appTicker = () => { |
| | | TWEEDLE.Group.shared.update(); |
| | | getStartedTicker = () => { |
| | | this.app.ticker.add((delta) => { |
| | | TWEEDLE.Group.shared.update(); |
| | | }); |
| | | } |
| | | |
| | | } |