@makefully/platypus 4.1.15 → 4.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makefully/platypus",
3
- "version": "4.1.15",
3
+ "version": "4.1.16",
4
4
  "description": "2D tile-based HTML5 game engine with a component-based entity model",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -1,7 +1,7 @@
1
1
  /* global platypus */
2
2
  import {arrayCache, greenSplice} from '../utils/array.js';
3
3
  import Data from '../Data.js';
4
- import {Sound} from '@pixi/sound';
4
+ import {Sound, filters} from '@pixi/sound';
5
5
  import StateMap from '../StateMap.js';
6
6
  import createComponentClass from '../factory.js';
7
7
 
@@ -65,20 +65,20 @@ const
65
65
  if (soundInstance.panFilter) {
66
66
  soundInstance.panFilter.pan = data.pan;
67
67
  } else {
68
- soundInstance.panFilter = new Sound.filters.StereoFilter(data.pan);
68
+ soundInstance.panFilter = new filters.StereoFilter(data.pan);
69
69
  }
70
70
  }
71
71
  if (soundInstance.panFilter || this.autoPanFilter) {
72
72
  const
73
- filters = [];
73
+ appliedFilters = [];
74
74
 
75
75
  if (soundInstance.panFilter) {
76
- filters.push(soundInstance.panFilter);
76
+ appliedFilters.push(soundInstance.panFilter);
77
77
  }
78
78
  if (this.autoPanFilter) {
79
- filters.push(this.autoPanFilter);
79
+ appliedFilters.push(this.autoPanFilter);
80
80
  }
81
- soundInstance.filters = filters;
81
+ soundInstance.filters = appliedFilters;
82
82
  }
83
83
  data.audio = this.player.play(soundInstance, data);
84
84
  //if (data.volume) {
@@ -310,7 +310,7 @@ export default createComponentClass(/** @lends platypus.components.AudioSFX.prot
310
310
 
311
311
  this.volume = autoPan.maximum;
312
312
 
313
- this.autoPanFilter = new Sound.filters.StereoFilter(lastPan);
313
+ this.autoPanFilter = new filters.StereoFilter(lastPan);
314
314
 
315
315
  this.addEventListener("camera-update", function (camera) {
316
316
  const