Phaser Late Loading

Learning a little more about phaser io (my chosen web game engine for various personal projects) and stumbled upon the answer to a question that has vexed me for some time:

See the Pen Phaser-Load-example by Zachary Beyer (@Zbeyer) on CodePen.

Bookmark and Share

3 thoughts on “Phaser Late Loading

  1. Well don’t forget that loading is generally asynchronous so your test might not be doing what you think it is, I’d need to check the Phaser source code to be sure but it’s possible that even if you remove the sound from the cache it may still continue to load if it has not completed doing so when you call ‘removeSound’. A better test would be to only call removeSound once you are sure the mp3 is loaded, decompressed and ready to use.

Leave a Reply

Your email address will not be published. Required fields are marked *