Skip to content

Search

Back
· 1 min read

Loading screen

Balaur devlog: added support for loading screen, with customizable time and progress bar.

Added support to Balaur for loading / splash screen. Now, while the game loads the assets and the engine itself gets ready, a nice progress bar and an image will show for a few seconds (configurable).

Splash screen

It is also configurable in the project.toml file:

[application]
splash = "art/logo.png"
splash_seconds = 1.5

It can also be reused if needed for other parts of the game, from Rune:

ui::set_load_progress(0.4, "textures");
// ...
ui::finish_loading();
  • set_load_progress takes a fraction and a label, and draws a bar under the picture in the theme's primary colour.
  • finish_loading ends the loading early.

Docs

Read more about it here: