Home > other >  Cocos2d - js reconnection problems without Internet
Cocos2d - js reconnection problems without Internet

Time:09-23

Cocos2d - js broken network in the loading process how to solve the break line reconnection continue loading resource handling
Now I handle is offline for reconnection location directly. Reload (); Refresh the page

CodePudding user response:

I use 2.2.3 cocos2d - js, this version of the Loader is that whether can get download failed, but there is no failure callback, and download to join in the list of all address to download it once, you need to modify CCLoader this file, add the callback in failure branch, don't know which version you use, you can go to look at you this version of the download method is how to implement,

Of course, restart is actually a solution (although not very well), because the browser is a cache, your resource files can be obtained by caching,
  • Related