diff --git a/README.md b/README.md index 7c477bdac5ee21bf8c840b5c0fe87a6ccb46c2fe..cd6356e516cd02634d067b437526d51b991692db 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,12 @@ Code for the bevy jam 2022 ```sh cargo run --release ``` + +Copyright: +Song: Desmeon - Back From The Dead [NCS Release] +\ +Music provided by NoCopyrightSounds +\ +Free Download/Stream: http://ncs.io/bftd +\ +Watch: http://youtu.be/OFWT4yfPdjo diff --git a/assets/theme.ogg b/assets/theme.ogg new file mode 100644 index 0000000000000000000000000000000000000000..83eebb3cfe25a5d8eaaf2b69b9ae84872adf0898 Binary files /dev/null and b/assets/theme.ogg differ diff --git a/src/main.rs b/src/main.rs index 713466414743bc2b11f408a598d575ddee1f6bcb..3ee7d7d4a210b810eb7fd7864dd496134697c3a0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -104,6 +104,7 @@ fn main() { fn main_setup_system( mut commands: Commands, asset_server: Res<AssetServer>, + audio: Res<Audio>, mut texture_atlases: ResMut<Assets<TextureAtlas>>, ) { // camera @@ -125,6 +126,10 @@ fn main_setup_system( }; commands.insert_resource(grid_stack_textures); + // Play Audio + let music = asset_server.load("theme.ogg"); + audio.play(music); + // marker texture let marker_texture = GridCursorTexture { handle: asset_server.load(GRIDCURSOR_TEXTURE.path),