Jump to content

how to use pixijs loader with holwer.js?


rossi46
 Share

Recommended Posts

Very curious about this too...

For my current project I attach listeners to the two loaders separately (i.e. follow the counter of each Howl object's onLoad and track when they're all complete)

Would be really nice if I could just use the PIXI loader for everything.

Note that for visual display purposes, I guess you could load it all with pixi loader, then destroy the load and then setup the Howl stuff which should get it from cache, though that's kindof lame...

Link to comment
Share on other sites

Hi guys, I ended up embedding my own logic.
I personally don't like it, but it was enough for me to continue my other deliveries until I found a better way.

function onAssetsLoaded(loader){
	loaded = false;

	function checkSounds() {
		if (sounds.state() === "loaded"){
			loaded = true;
		}

		if (loaded){
			clearInterval(soundInt);
		}
	}
	soundInt = setInterval(checkSounds, 100);
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...