Skip to content

Commit

Permalink
fix: added working bevy demo (#406)
Browse files Browse the repository at this point in the history
* fix: added working bevy demo part of #379

* fix: Updated bevy template

* minor readme update
  • Loading branch information
jmetz authored Oct 15, 2024
1 parent a563a64 commit 00f1cdc
Show file tree
Hide file tree
Showing 7 changed files with 214 additions and 243 deletions.
47 changes: 42 additions & 5 deletions templates/apps/bevy-demo/Cargo.toml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,48 @@ name = "{{app.name}}-desktop"
path = "gen/bin/desktop.rs"

[dependencies]
mobile-entry-point = "0.1.1"
bevy = "0.3.0"
bevy = { version = "0.14", default-features = false, features = [
"animation",
"bevy_asset",
"bevy_audio",
"bevy_state",
"bevy_color",
"bevy_gilrs",
"bevy_scene",
"bevy_winit",
"bevy_core_pipeline",
"bevy_pbr",
"bevy_gltf",
"bevy_render",
"bevy_sprite",
"bevy_text",
"bevy_ui",
"multi_threaded",
"png",
"hdr",
"x11",
"vorbis",
"bevy_gizmos",
"tonemapping_luts",
"smaa_luts",
"default_font",
"webgl2",
"sysinfo_plugin",
] }
# bevy_audio = { version = "0.14.2", features = ["cpal"] }
image = { version = "0.25", default-features = false }
log = { version = "0.4", features = ["max_level_debug", "release_max_level_warn"] }


[target.'cfg(target_os = "android")'.dependencies]
ndk-glue = "0.2.1"
winit = { version = "0.30", default-features = false, features = [ "android-native-activity" ]}
android-activity = "0.6"
android_logger = "0.13"
paste = "1.0"

[target.'cfg(not(target_os = "android"))'.dependencies]
env_logger = "0.11.5"
winit = { version = "0.30", default-features = false }

[patch.crates-io]
cpal = { git = "https://github.com/francesca64/cpal", branch = "fran-ios" }
[build-dependencies]
embed-resource = "1.4"
Binary file added templates/apps/bevy-demo/assets/audio/flying.ogg
Binary file not shown.
Binary file added templates/apps/bevy-demo/assets/textures/bevy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 00f1cdc

Please sign in to comment.