diff --git a/assets/credits.txt b/assets/credits.txt new file mode 100644 index 0000000..83d9812 --- /dev/null +++ b/assets/credits.txt @@ -0,0 +1 @@ +Knight - https://aamatniekss.itch.io/fantasy-knight-free-pixelart-animated-character diff --git a/assets/test/Knight.png b/assets/test/Knight.png new file mode 100644 index 0000000..9e9861e Binary files /dev/null and b/assets/test/Knight.png differ diff --git a/src/debug_diagnostic.rs b/src/debug_diagnostic.rs index 4d4b9d0..ae15656 100644 --- a/src/debug_diagnostic.rs +++ b/src/debug_diagnostic.rs @@ -27,11 +27,6 @@ impl Plugin for DiagnosticPlugin { Update, (fps_counting, sheep_counter_text, alive_sheep_counter).in_set(GameSet::Playing), ); - - #[cfg(feature = "dev")] - { - app.add_plugins(bevy_inspector_egui::quick::WorldInspectorPlugin::default()); - } } } diff --git a/src/lib.rs b/src/lib.rs index 3b0e98f..15f38aa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,6 +14,8 @@ pub mod storyteller; pub mod test_level; pub mod torch; pub mod wolf; +pub mod sunday; +pub mod shepherd; use std::f32::consts::PI; @@ -99,6 +101,8 @@ impl Plugin for GamePlugin { wolf::WolfPlugin, menu::MenuPlugin, finish_screen::FinishScreenPlugin, + sunday::SundayPlugin, + shepherd::ShepherdPlugin, )); //For long term updates diff --git a/src/player.rs b/src/player.rs index bc3088a..5c50284 100644 --- a/src/player.rs +++ b/src/player.rs @@ -1,4 +1,4 @@ -use bevy::{input::mouse::MouseWheel, prelude::*, window::PrimaryWindow}; +use bevy::{input::mouse::MouseWheel, prelude::*, window::PrimaryWindow, pbr::{CascadeShadowConfig, CascadeShadowConfigBuilder}}; use crate::{ get_sprite_rotation, @@ -168,7 +168,7 @@ pub fn bark( return; }; - if input.just_pressed(KeyCode::Space) { + if input.pressed(KeyCode::Space) { event_writer.send(Bark { radius: 10., position: bark.translation, @@ -224,6 +224,7 @@ fn camera_movement( player_query: Query<&Transform, (With, Without)>, time: Res