diff --git a/assets/textures/ground/flowers1.png b/assets/textures/ground/flowers1.png deleted file mode 100644 index 143f175..0000000 Binary files a/assets/textures/ground/flowers1.png and /dev/null differ diff --git a/assets/textures/ground/flowers2.png b/assets/textures/ground/flowers2.png deleted file mode 100644 index 4f1f847..0000000 Binary files a/assets/textures/ground/flowers2.png and /dev/null differ diff --git a/assets/textures/ground/grass1.png b/assets/textures/ground/grass1.png index 7c8db0f..3a7d161 100644 Binary files a/assets/textures/ground/grass1.png and b/assets/textures/ground/grass1.png differ diff --git a/assets/textures/ground/grass2.png b/assets/textures/ground/grass2.png index b3fdcce..dd5bf5f 100644 Binary files a/assets/textures/ground/grass2.png and b/assets/textures/ground/grass2.png differ diff --git a/assets/textures/ground/ground.png b/assets/textures/ground/ground.png index 7f21173..84083bb 100644 Binary files a/assets/textures/ground/ground.png and b/assets/textures/ground/ground.png differ diff --git a/src/bees.rs b/src/bees.rs index f69d52e..efc4625 100644 --- a/src/bees.rs +++ b/src/bees.rs @@ -16,6 +16,7 @@ use crate::{ use crate::interactions::{MousePosition, Highlightable}; use bevy::prelude::*; +use crate::tilemap::FogTile; // use bevy::window::PrimaryWindow; pub struct BeesPlugin; @@ -27,6 +28,7 @@ impl Plugin for BeesPlugin { .add_systems(Update, create_boid_group.run_if(in_state(GameState::Playing))) .add_systems(Update, place_bee.run_if(in_state(GameState::Playing))) .add_systems(Update, animate_wings.run_if(in_state(GameState::Playing))) + // .add_systems(Update, clear_fog.run_if(in_state(GameState::Playing))) .add_systems( Update, (build_or_update_quadtree, update_boids, move_system).run_if( @@ -78,10 +80,10 @@ pub struct Bee; #[derive(Component)] pub enum BeeBehavior { - Traveling(Vec2), // Destination coordinates - Wondering(Vec2), // Point of origin coordinates - Exploring(Vec2), // Point of origin coordinates - Interacting(Vec2), // Coordinates of interactable object + // Traveling(Vec2), // Destination coordinates + Destination(Vec2), // Point of origin coordinates + // Exploring(Vec2), // Point of origin coordinates + // Interacting(Vec2), // Coordinates of interactable object } // Separate out these types of data??? @@ -125,11 +127,11 @@ impl BoidGroup { graph: QuadTree::new(region::Region::new(min, max)), id: team.0, count: 0, - separation: 0.3, - alignment: 0.4, - cohesion: 0.8, - speed: 40.0, - vision: 50.0, + separation: 0.5, + alignment: 0.3, + cohesion: 0.3, + speed: 240.0, + vision: 600.0, } } } @@ -156,12 +158,12 @@ fn setup(mut _commands: Commands) { } #[derive(Component)] -struct AnimationIndices { - first: usize, - last: usize, +pub struct AnimationIndices { + pub first: usize, + pub last: usize, } #[derive(Component, Deref, DerefMut)] -struct AnimationTimer(Timer); +pub struct AnimationTimer(pub Timer); fn animate_wings( time: Res