From 8369c67af8259621007c779917e7c0ea0f04cd0f Mon Sep 17 00:00:00 2001 From: Dennis Smuda Date: Thu, 22 Feb 2024 21:54:38 +0100 Subject: [PATCH 1/8] feat: Introduce Events (EnemyKilled) --- src/game/enemies.rs | 10 +++++++++- src/game/game_ui.rs | 36 ++++++++++++++++++++++++++++++++---- src/gameover/mod.rs | 8 ++++++++ src/main.rs | 10 +++++++++- 4 files changed, 58 insertions(+), 6 deletions(-) diff --git a/src/game/enemies.rs b/src/game/enemies.rs index 3e44b94..411ce0d 100644 --- a/src/game/enemies.rs +++ b/src/game/enemies.rs @@ -57,7 +57,11 @@ fn spawn_enemies(mut commands: Commands, time: Res