lemverse
lemverse copied to clipboard
The loading page kicks in quite late
While the assets are being downloaded, there is a black blank page, and the loading page only comes afterwards. It would probably be nicer if the loading page came as early as possible, especially for those with a weak connection. :)
I tried a few things but the current loading system is a mess because many things depend on each other 😕
The steps that should be followed:
- Load phaser and default scenes (world, boot, editor, ui) to show the loading screen immediatly
- Remove the loading of the assets present in the preload function of the boot scene
- Wait for the initialization of the scenes
- Subscribe to Tilesets and Characters collections with Meteor
- Wait for the complete loading for both collections
- Wait for the complete loading of the images in Phaser
- Start loading the level (tilesets must be loaded to load the map and character elements must be loaded to create them)