plicatibu Posted November 6, 2013 Share Posted November 6, 2013 How could I have a preloader based in the number of bytes downloaded instead of the number of files? I'm planning to use just one tilesheet and it seems to me that the Loader takes in account just the number of files in order to update the sprite given in its setPreloadSprite method. Thank you. Link to comment Share on other sites More sharing options...
rich Posted November 6, 2013 Share Posted November 6, 2013 You can't. Image files don't have byte progress data, just a "started" and "stopped". The only possible way to do it would be to xhr2 everything, but it will break backwards browser compatibility. Link to comment Share on other sites More sharing options...
plicatibu Posted November 6, 2013 Author Share Posted November 6, 2013 I see. Do you have any suggestion for a preloader when there is just a file to download (a spritesheet?) Regards. Link to comment Share on other sites More sharing options...
rich Posted November 6, 2013 Share Posted November 6, 2013 Use an animated spinning ball type thing instead. Link to comment Share on other sites More sharing options...
NickColley Posted November 7, 2013 Share Posted November 7, 2013 Use an animated spinning ball type thing instead. The technical term for such spinning ball type things is a throbber. (Incase anyone needs help finding examples) Link to comment Share on other sites More sharing options...
Mike Posted November 7, 2013 Share Posted November 7, 2013 I call them spinner or loader. (In case anyone like me search for this). Link to comment Share on other sites More sharing options...
YellowAfterlife Posted November 12, 2013 Share Posted November 12, 2013 Server can be set up to send game data in small portions (e.g. 16KB each), which would be later reconstructed into files client-side, but this is normally too much of a sacrifice for a smoother loading bar. Link to comment Share on other sites More sharing options...
Recommended Posts