Initial commit, fmod kinda works?!

selection-refactor
Elijah Voigt 2 years ago
commit c856b3be48

10
.gitattributes vendored

@ -0,0 +1,10 @@
fmodstudio/linux filter=lfs diff=lfs merge=lfs -text
fmodstudio/windows filter=lfs diff=lfs merge=lfs -text
assets/ filter=lfs diff=lfs merge=lfs -text
*.so filter=lfs diff=lfs merge=lfs -text
*.so.* filter=lfs diff=lfs merge=lfs -text
*.xml filter=lfs diff=lfs merge=lfs -text
*.ogg filter=lfs diff=lfs merge=lfs -text
*.pdc filter=lfs diff=lfs merge=lfs -text
*.fspro filter=lfs diff=lfs merge=lfs -text
*.bank filter=lfs diff=lfs merge=lfs -text

5
.gitignore vendored

@ -0,0 +1,5 @@
/target
**/.cache/
**/.user/
**/.unsaved/
**/*.fspackage

3737
Cargo.lock generated

File diff suppressed because it is too large Load Diff

@ -0,0 +1,10 @@
[package]
name = "martian-chess"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy_fmod = "0.3"
bevy = "0.11"

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -0,0 +1,38 @@
//! This example demonstrates how to use the FmodPlugin to play a sound.
//! Make sure to follow the instructions in the README.md to set up the demo project.
use bevy::prelude::*;
use bevy_fmod::prelude::AudioSource;
use bevy_fmod::prelude::*;
fn main() {
App::new()
.add_plugins((
DefaultPlugins,
FmodPlugin {
audio_banks_paths: &[
"./assets/audio/Martian Chess/Build/Desktop/Master.bank",
"./assets/audio/Martian Chess/Build/Desktop/Master.strings.bank",
"./assets/audio/Martian Chess/Build/Desktop/Music.bank",
],
},
))
.add_systems(Startup, startup)
.add_systems(PostStartup, play_music)
.run();
}
#[derive(Component)]
struct MyMusicPlayer;
fn startup(mut commands: Commands, studio: Res<FmodStudio>) {
let event_description = studio.0.get_event("event:/Martian Chess").unwrap();
commands
.spawn(MyMusicPlayer)
.insert(AudioSource::new(event_description));
}
fn play_music(mut audio_sources: Query<&AudioSource, With<MyMusicPlayer>>) {
audio_sources.single_mut().play();
}

BIN
fmodstudio/linux/libfmod.so (Stored with Git LFS)

Binary file not shown.

BIN
fmodstudio/linux/libfmod.so.13 (Stored with Git LFS)

Binary file not shown.

BIN
fmodstudio/linux/libfmod.so.13.17 (Stored with Git LFS)

Binary file not shown.

BIN
fmodstudio/linux/libfmodstudio.so (Stored with Git LFS)

Binary file not shown.

BIN
fmodstudio/linux/libfmodstudio.so.13 (Stored with Git LFS)

Binary file not shown.

BIN
fmodstudio/linux/libfmodstudio.so.13.17 (Stored with Git LFS)

Binary file not shown.

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
Loading…
Cancel
Save