diff --git a/readme.md b/readme.md index de5e3bd..9d24f1e 100644 --- a/readme.md +++ b/readme.md @@ -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 diff --git a/src/camera.rs b/src/camera.rs index a947bf3..3c13240 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -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); } diff --git a/src/main.rs b/src/main.rs index 8721851..b1c2d5b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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() diff --git a/src/player.rs b/src/player.rs index 8e26860..a163d72 100644 --- a/src/player.rs +++ b/src/player.rs @@ -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]);