TheBevyFlock / bevy_cli

A Bevy CLI tool and linter.
https://thebevyflock.github.io/bevy_cli/
Apache License 2.0
46 stars 7 forks source link

Fix loading screen for default bevy app setup #143

Closed TimJentzsch closed 1 month ago

TimJentzsch commented 1 month ago

The loading screen with the default index.html we serve doesn't work for the default app setup, it isn't removed from the webpage. It currently assumes that the canvas #bevy is used to create the app, but this needs to be configured explicitly in the Bevy app (as it was done in the bevy_quickstart template).

However, the default index.html should work with as little adjustments to the app as possible.

Therefore, we shouldn't assume a specific ID of the canvas. Instead, we can maybe observe when a new canvas element is spawned and use that event to remove the loading screen.

BD103 commented 1 month ago

Closed by #144 :)