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] Movement
- [X] Flipping sprites - [X] Flipping sprites
- [X] Camera - [X] Camera
- [ ] SFX - [X] SFX
- Examples: - Examples:
- https://github.com/bevyengine/bevy/blob/main/examples/audio/audio.rs - 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/audio_control.rs
- https://github.com/bevyengine/bevy/blob/main/examples/audio/spatial_audio_2d.rs - https://github.com/bevyengine/bevy/blob/main/examples/audio/spatial_audio_2d.rs
- [ ] Y-sort
- [ ] Tile system - [ ] Tile system
- [ ] Basic map - [ ] Basic map
- [ ] Enemies - [ ] Enemies

View file

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

View file

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

View file

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