Jump to content

Phaser's Loader, and handling multiple instances


Croweley
 Share

Recommended Posts

In my current game, a 'world' loads using one Loader, and once it's been loaded about 10-30 players are created and loaded into the game, each using a separate instance of the Loader to load their personal assets. As each is loaded, they pop into the game. While I have no real problems with this method, I have a few questions:

 

1- Is it better to use a single loader (across the entire game), and if so, how do I trace completion events for players and their assets as they enter the game over time?

 

2- Is there any retry logic for the Loader? If our server is unresponsive for a short time, it would be great to timeout and retry the failed download once again BEFORE the onLoadComplete event is fired

 

Any insight is greatly appreciated!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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