Fix some typos

This commit is contained in:
Timothy Warren 2020-07-27 16:21:19 -04:00
parent 63ab324052
commit f72be8c45d
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#[derive(Debug)]
pub enum Event {
// Fired when the player hits an obstacle like a wall
PlayerHistObstacle,
PlayerHitObstacle,
// Fired when an entity is moved
EntityMoved(EntityMoved),

View File

@ -58,7 +58,7 @@ impl event::EventHandler for Game {
}
fn draw(&mut self, context: &mut Context) -> GameResult {
// Render gaem entities
// Render game entities
{
let mut rs = RenderingSystem { context };
rs.run_now(&self.world);

View File

@ -31,7 +31,7 @@ impl<'a> System<'a> for EventSystem {
// println!("New event: {:?}", event);
match event {
Event::PlayerHistObstacle => {
Event::PlayerHitObstacle => {
// play sound here
audio_store.play_sound(&"wall".to_string());
}