diff --git a/README.md b/README.md index e86c768..f73e123 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ a game for the bevy jam 4 - [ ] mvp gameplay loop (sab mañ) 0.3 - [x] game score - - [ ] multiple start/end points + - [x] multiple start/end points - [ ] spawn end points - [ ] lose timer and visual feedback diff --git a/src/spirits.rs b/src/spirits.rs index 7319116..1176834 100644 --- a/src/spirits.rs +++ b/src/spirits.rs @@ -9,12 +9,11 @@ use crate::{ GameState, }; -const SPIRIT_SPEED: f32 = 150.; -const SPIRIT_SIZE: f32 = 40.; -const MAX_SPIRITS_IN_TILE: u32 = 2; - -const FUN_A: f32 = 0.75; -const FUN_B: f32 = 0.01; +const SPIRIT_SPEED: f32 = 200.; +const SPIRIT_SIZE: f32 = 32.; +const MAX_SPIRITS_IN_TILE: u32 = 3; +const MAX_DISTANCE: f32 = std::f32::MAX; +const FUN_A: f32 = 10.; // ······ // Plugin @@ -48,6 +47,7 @@ pub struct Spirit { curr_tile: TilePos, next_tile: Option, next_pos: Vec2, + selected_end: Option, vel: Vec2, } @@ -58,6 +58,7 @@ impl Spirit { curr_tile, next_tile: None, next_pos: curr_pos, + selected_end: None, vel: Vec2::ZERO, } } @@ -72,7 +73,7 @@ fn spawn_spirit( time: Res