event logging/game over message
This commit is contained in:
parent
1c435f8d60
commit
f9057da71b
6 changed files with 79 additions and 17 deletions
|
|
@ -73,6 +73,7 @@ pub fn delete_the_dead(ecs: &mut World) {
|
|||
}
|
||||
|
||||
for victim in dead {
|
||||
gamelog::record_event("death_count", 1);
|
||||
ecs.delete_entity(victim).expect("Unable to delete.");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue