diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-12-04 12:15:19 -0700 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-12-04 12:15:19 -0700 |
commit | f70e2018a4d3f979e1108981284a09a44bd11542 (patch) | |
tree | 796d7f3b75070f91bd61ddf75e4aa41122fd2545 /src/entities/antifaShip.c | |
parent | a3957cac6cbc33f5ec88b9c15aeaf267f2bcd6b8 (diff) |
Made level 5 a bit better
Diffstat (limited to 'src/entities/antifaShip.c')
-rw-r--r-- | src/entities/antifaShip.c | 8 |
1 files changed, 7 insertions, 1 deletions
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)) |