Fix some typos
This commit is contained in:
parent
63ab324052
commit
f72be8c45d
@ -1,7 +1,7 @@
|
|||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Event {
|
pub enum Event {
|
||||||
// Fired when the player hits an obstacle like a wall
|
// Fired when the player hits an obstacle like a wall
|
||||||
PlayerHistObstacle,
|
PlayerHitObstacle,
|
||||||
|
|
||||||
// Fired when an entity is moved
|
// Fired when an entity is moved
|
||||||
EntityMoved(EntityMoved),
|
EntityMoved(EntityMoved),
|
||||||
|
@ -58,7 +58,7 @@ impl event::EventHandler for Game {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn draw(&mut self, context: &mut Context) -> GameResult {
|
fn draw(&mut self, context: &mut Context) -> GameResult {
|
||||||
// Render gaem entities
|
// Render game entities
|
||||||
{
|
{
|
||||||
let mut rs = RenderingSystem { context };
|
let mut rs = RenderingSystem { context };
|
||||||
rs.run_now(&self.world);
|
rs.run_now(&self.world);
|
||||||
|
@ -31,7 +31,7 @@ impl<'a> System<'a> for EventSystem {
|
|||||||
// println!("New event: {:?}", event);
|
// println!("New event: {:?}", event);
|
||||||
|
|
||||||
match event {
|
match event {
|
||||||
Event::PlayerHistObstacle => {
|
Event::PlayerHitObstacle => {
|
||||||
// play sound here
|
// play sound here
|
||||||
audio_store.play_sound(&"wall".to_string());
|
audio_store.play_sound(&"wall".to_string());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user