You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if Assets.loadBundle() in Pixi could automatically handle sound spritesheets, making asset management even more efficient. I’ve submitted a related feature request in Pixi’s Asset Pack to support packing sounds into a sound spritesheet.
The idea is for Pixi to recognize a sound spritesheet in the bundle assets and automatically add the sound sprites based on the provided sounds.json file.
Here’s an example of how this could work:
// Init the manifestawaitAssets.init({manifest: {bundles: [{name: 'load-screen',assets: [{name: 'sounds',srcs: 'sounds.json'},],},
...
],},});// Load the bundleconstloadingScreenAssets=awaitPIXI.Assets.loadBundle('loading-screen');// Create a new soundconstsound=PIXI.sound.Sound.from(loadingScreenAssets.sounds);// Pixi should automatically recognize the sound spritesheet and add all sprites// No need for explicit sound.addSprites({...})// Use the sprite alias to playsound.play('bgm_main');
This feature would streamline the process by eliminating the need to manually call sound.addSprites({...}), allowing for more seamless sound management in Pixi.
The text was updated successfully, but these errors were encountered:
It would be great if
Assets.loadBundle()
in Pixi could automatically handle sound spritesheets, making asset management even more efficient. I’ve submitted a related feature request in Pixi’s Asset Pack to support packing sounds into a sound spritesheet.The idea is for Pixi to recognize a sound spritesheet in the bundle assets and automatically add the sound sprites based on the provided
sounds.json
file.Here’s an example of how this could work:
Here’s a sample
sounds.json
file:This feature would streamline the process by eliminating the need to manually call
sound.addSprites({...})
, allowing for more seamless sound management in Pixi.The text was updated successfully, but these errors were encountered: