diff options
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)) |