edwinwebb / pixi-seed

Pixi.js project seed with ES6 and webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loader not working

fiesel opened this issue · comments

The loading Indicator (Loader) does not work.

I tracked down the problem.

  onUpdate(ldr) {
    this.progress = ldr.progress / 100;
  }

does not trigger a dispatch so

this.unsubscribe = Store.subscribe(() => {
      this.ease += (this.progress - this.ease) * 0.03;
      this.bar.scale.x = this.ease;
    });

cant update. By using the AnimationStore you have it updated and therefore the loader will work

Thanks for the report. I've had the easing animation be updated AnimationStore and put the loading screen in a ScaledContainer