We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15e673a commit c424c08Copy full SHA for c424c08
src/game_states/playing_state/playing_state.rs
@@ -87,7 +87,8 @@ impl<'a> GameState<'a> for PlayingState<'a> {
87
let mut active_notes: [bool; 88] = [false; 88];
88
89
for n in self.notes.iter() {
90
- if n.start <= time {
+ // Will Play In future Or Was Played Max 0.5s Ago
91
+ if n.start <= time && n.start + n.duration + 0.5 > time {
92
if n.start + n.duration >= time {
93
active_notes[(n.note - 21) as usize] = true;
94
@@ -103,7 +104,6 @@ impl<'a> GameState<'a> for PlayingState<'a> {
103
104
}
105
106
- // println!("Left:{}", self.notes.len());
107
108
if self.notes.is_empty() {
109
let menu = Box::new(crate::game_states::MenuState::new(self.display));
0 commit comments