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 #144

Closed TimJentzsch closed 1 month ago

TimJentzsch commented 1 month ago

Closes #134.

This PR adjusts the default index.html we serve with bevy run web to work better for a Bevy app that doesn't have any special configuration.

We don't assume anymore that the canvas is already created with ID #bevy, but instead watch for a new canvas to be created (which is the default behavior).

We also adjust the styling to better work with this setup and change the web background color to the default Bevy app background color.

BD103 commented 1 month ago

Merge this once you feel it's ready! :D