Crates.io | bevy_intro_screen |
lib.rs | bevy_intro_screen |
version | 0.1.2 |
source | src |
created_at | 2024-08-06 12:14:43.134285 |
updated_at | 2024-08-13 19:13:44.992583 |
description | Highly customizable introductio n(splash) screen library for Bevy games |
homepage | https://github.com/Deaths-Door/bevy_intro_screen |
repository | https://github.com/Deaths-Door/bevy_intro_screen |
max_upload_size | |
id | 1327208 |
size | 644,990 |
This is a versatile Bevy library designed to create engaging and customizable introductory screens for your game. Initially conceived for splash screens, its flexibility allows for adaptation as loading screens between game states.
Cargo.toml
:[dependencies]
bevy_intro_screen = "0.1.0"
use bevy::prelude::*;
use bevy_intro_screen::prelude::*;
fn main() {
let run_at = ..;
let transition_to = ..;
// Included options include using egui;
let ui = ..;
let preferences = IntroPreferences::builder()
.run_at(run_at)
.transition_to(transition_to)
.skip_on_input(true)
.duration(FixedDuration::new(transition_to))
.ui(ui)
.build();
let splash_plugin = IntroScreenPlugin::builder()
.preferences(preferences)
.failure_manager(OnFailureContinue)
.build();
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(splash_plugin)
.run()
}
Please note that the examples provided here are simplified and serve as a starting point. For comprehensive documentation of the crate, please visit the crate documentation for a better understanding of the crate's functionalities and APIs.
For more examples, please refer to the examples directory.
While primarily designed for splash screens, this library can be adapted to function as a loading screen between game states
Contributions are welcome! Feel free to open issues or pull requests.