Use non-spatial sound for now

This commit is contained in:
Daniel Flanagan 2023-12-25 15:22:15 -06:00
parent 7a89010390
commit 6781105af3
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
4 changed files with 5 additions and 4 deletions

View file

@ -17,11 +17,12 @@ the heavy-lifting for me _plus_ it's a fun excuse to write more Rust.
- [X] Movement
- [X] Flipping sprites
- [X] Camera
- [ ] SFX
- [X] SFX
- Examples:
- https://github.com/bevyengine/bevy/blob/main/examples/audio/audio.rs
- https://github.com/bevyengine/bevy/blob/main/examples/audio/audio_control.rs
- https://github.com/bevyengine/bevy/blob/main/examples/audio/spatial_audio_2d.rs
- [ ] Y-sort
- [ ] Tile system
- [ ] Basic map
- [ ] Enemies

View file

@ -13,7 +13,7 @@ impl Plugin for Camera {
fn spawn(mut commands: Commands) {
let mut bundle = Camera2dBundle::default();
bundle.projection.scale = 0.25;
bundle.projection.scale = 1. / 2.;
commands.spawn(bundle);
}

View file

@ -15,7 +15,7 @@ fn main() {
.set(WindowPlugin {
primary_window: Some(Window {
title: "Kodo Tag".into(),
resolution: (800., 600.).into(),
resolution: (640. * 2., 360. * 2.).into(),
..Default::default()
}),
..Default::default()

View file

@ -53,7 +53,7 @@ fn controls(
let child = commands
.spawn(AudioSourceBundle {
source: assets.sounds.meow.clone(),
settings: PlaybackSettings::DESPAWN.with_spatial(true),
settings: PlaybackSettings::DESPAWN.with_spatial(false),
})
.id();
commands.entity(player_entity).push_children(&[child]);