forked from tutorials/rust-sokoban
Fix some typos
This commit is contained in:
parent
63ab324052
commit
f72be8c45d
@ -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),
|
||||
|
@ -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);
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user