Complete 3.3 Sounds and events
This commit is contained in:
parent
1628a5d271
commit
b9245a2dff
@ -45,6 +45,12 @@ impl event::EventHandler for Game {
|
|||||||
time.delta += timer::delta(context);
|
time.delta += timer::delta(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Run event system
|
||||||
|
{
|
||||||
|
let mut es = EventSystem {};
|
||||||
|
es.run_now(&self.world);
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ impl<'a> System<'a> for EventSystem {
|
|||||||
let sound = if is_correct_spot {
|
let sound = if is_correct_spot {
|
||||||
"correct"
|
"correct"
|
||||||
} else {
|
} else {
|
||||||
"inncorrect"
|
"incorrect"
|
||||||
};
|
};
|
||||||
|
|
||||||
audio_store.play_sound(&sound.to_string())
|
audio_store.play_sound(&sound.to_string())
|
||||||
|
Loading…
Reference in New Issue
Block a user