@makefully/platypus 4.1.17 → 4.1.19

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.17",
3
+ "version": "4.1.19",
4
4
  "description": "2D tile-based HTML5 game engine with a component-based entity model",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -82,7 +82,7 @@
82
82
  },
83
83
  "optionalDependencies": {
84
84
  "box2d3-wasm": "^4.2.0",
85
- "jsmediatags": "github:probityrules/jsmediatags",
85
+ "@probityrules/jsmediatags": "^4.0.4",
86
86
  "poly-decomp": "^0.3.0"
87
87
  },
88
88
  "engines": {
@@ -298,13 +298,15 @@ export default createComponentClass(/** @lends platypus.components.AudioSFX.prot
298
298
  const
299
299
  key = keys[i],
300
300
  sound = audioMap[key],
301
+ // Must match the resolved id stored on clips in playSound / stopAudio.
302
+ soundId = platypus.assetCache.getFileId(sound.sound ?? sound),
301
303
  playClip = playSound(sound);
302
304
 
303
305
  if (this.eventBased) {
304
306
  this.addEventListener(key, playClip);
305
307
  }
306
308
  if (this.stateBased) {
307
- this.addStateCheck(key, sound.sound ?? sound, playClip);
309
+ this.addStateCheck(key, soundId, playClip);
308
310
  }
309
311
  }
310
312
  }
@@ -623,7 +625,7 @@ export default createComponentClass(/** @lends platypus.components.AudioSFX.prot
623
625
  if (active) {
624
626
  play.call(this);
625
627
  } else {
626
- this.stopAudio(audioId, this.forcePlaythrough);
628
+ this.stopAudio(audioId, this.forcePlayThrough);
627
629
  }
628
630
  checkData.playing = active;
629
631
  }