Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The loading page kicks in quite late #84

Open
ramnes opened this issue Aug 19, 2022 · 1 comment
Open

The loading page kicks in quite late #84

ramnes opened this issue Aug 19, 2022 · 1 comment
Labels
enhancement New feature or request up-for-grabs

Comments

@ramnes
Copy link
Collaborator

ramnes commented Aug 19, 2022

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. :)

@Donorhan
Copy link
Contributor

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)

@Donorhan Donorhan added the enhancement New feature or request label Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request up-for-grabs
Projects
None yet
Development

No branches or pull requests

3 participants