From f70e2018a4d3f979e1108981284a09a44bd11542 Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Mon, 4 Dec 2023 12:15:19 -0700 Subject: Made level 5 a bit better --- src/entities/antifaShip.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/entities/antifaShip.c') diff --git a/src/entities/antifaShip.c b/src/entities/antifaShip.c index 1ba8db9..342f0f9 100644 --- a/src/entities/antifaShip.c +++ b/src/entities/antifaShip.c @@ -203,9 +203,15 @@ void controlAntifaShipKeyboardAndMouse(Game * game, Entity * entity) { data->lastMouse = Vector2Zero(); } - // Kill me hehehe +#ifdef DEBUG_KEYS + // Kill me. if (IsKeyPressed(KEY_K)) entity->health = 0.0; + // Kill everyone else. + if (IsKeyPressed(KEY_L)) + for (int i = 1; i < game->world.entitiesCount; ++i) + game->world.entities[i].health = 0.0; +#endif // Shoot bullet. if (IsMouseButtonPressed(MOUSE_RIGHT_BUTTON)) -- cgit v1.2.3