You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The player is able to immediately interact with the game (move the spaceship around) while assets are still loading. This makes the experience seem like the game is in a broken state since nothing appears on the screen for a while.
This issue looks at implementing a "Loading" screen that waits for all initial assets to be loaded before the user can start playing.
In LoadingState.on_start, we should move the initializers for various entities that are loading in textures (ie: initialize_planet) in MainGameState here. Right now, we don't pass a progress counter to Loader.load in these helpers. This where the progress counter should start tracking when these assets have finished loading.
let loader = world.read_resource::<Loader>();let texture_storage = world.read_resource::<AssetStorage<Texture>>();
loader.load(format!("texture/{}", spritesheet_data.image),ImageFormat::default(),&progress_counter,// progress counter here to track asset&texture_storage,)
Implement a state transition from LoadingState to MainGameState when assets are finished loading.
The player is able to immediately interact with the game (move the spaceship around) while assets are still loading. This makes the experience seem like the game is in a broken state since nothing appears on the screen for a while.
This issue looks at implementing a "Loading" screen that waits for all initial assets to be loaded before the user can start playing.
We can probably start looking at this https://book.amethyst.rs/stable/assets/how_to_use_assets.html to get started.
The text was updated successfully, but these errors were encountered: