Skip to content

Commit

Permalink
Update bevy feature to 0.11 defaults minus audio and android (resolves
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasEi committed Oct 13, 2023
1 parent 3550602 commit c07ef46
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 111 deletions.
190 changes: 97 additions & 93 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ dev = [
"bevy/bevy_dylib",
]

# All of Bevy's default features exept for the audio related ones, since they clash with bevy_kira_audio
# and android_shared_stdcxx, since that is covered in `mobile`
[dependencies]
bevy = { version = "0.11", default-features = false, features = [
"animation",
"bevy_asset",
"bevy_gilrs",
"bevy_scene",
"bevy_winit",
"bevy_core_pipeline",
Expand All @@ -42,14 +45,16 @@ bevy = { version = "0.11", default-features = false, features = [
"bevy_sprite",
"bevy_text",
"bevy_ui",
"multi-threaded",
"png",
"hdr",
"ktx2",
"zstd",
"x11",
"ktx2",
"filesystem_watcher",
"bevy_gizmos",
"tonemapping_luts",
"webgl2"
"default_font",
"webgl2",
] }
bevy_kira_audio = { version = "0.16" }
bevy_asset_loader = { version = "0.17" }
Expand Down
Binary file removed assets/fonts/FiraSans-Bold.ttf
Binary file not shown.
7 changes: 0 additions & 7 deletions src/loading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ impl Plugin for LoadingPlugin {
app.add_loading_state(
LoadingState::new(GameState::Loading).continue_to_state(GameState::Menu),
)
.add_collection_to_loading_state::<_, FontAssets>(GameState::Loading)
.add_collection_to_loading_state::<_, AudioAssets>(GameState::Loading)
.add_collection_to_loading_state::<_, TextureAssets>(GameState::Loading);
}
Expand All @@ -22,12 +21,6 @@ impl Plugin for LoadingPlugin {
// the following asset collections will be loaded during the State `GameState::Loading`
// when done loading, they will be inserted as resources (see <https://github.com/NiklasEi/bevy_asset_loader>)

#[derive(AssetCollection, Resource)]
pub struct FontAssets {
#[asset(path = "fonts/FiraSans-Bold.ttf")]
pub fira_sans: Handle<Font>,
}

#[derive(AssetCollection, Resource)]
pub struct AudioAssets {
#[asset(path = "audio/flying.ogg")]
Expand Down
Loading

0 comments on commit c07ef46

Please sign in to comment.