From f72be8c45da81024bcda8ac61a9f5efd1b9600e5 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Mon, 27 Jul 2020 16:21:19 -0400 Subject: [PATCH] Fix some typos --- src/events.rs | 2 +- src/main.rs | 2 +- src/systems/event_system.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/events.rs b/src/events.rs index 4446dcb..0287a76 100644 --- a/src/events.rs +++ b/src/events.rs @@ -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), diff --git a/src/main.rs b/src/main.rs index 9a848ca..585c13c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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); diff --git a/src/systems/event_system.rs b/src/systems/event_system.rs index da4bbb4..c0f2f99 100644 --- a/src/systems/event_system.rs +++ b/src/systems/event_system.rs @@ -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()); }