diff options
author | nathansmithsmith <nathansmith7@mailfence.com> | 2023-11-06 21:14:58 -0700 |
---|---|---|
committer | nathansmithsmith <nathansmith7@mailfence.com> | 2023-11-06 21:14:58 -0700 |
commit | c28b9fdb3c15248604d38717a03e98c78ac88961 (patch) | |
tree | adf29a1c533d0217403c37e2590028e7fa892586 /src/gameScreen.c | |
parent | 4ca42bd3b6a55ee92cdf1af0f3137ab815f0375d (diff) |
Added kill log
Diffstat (limited to 'src/gameScreen.c')
-rw-r--r-- | src/gameScreen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gameScreen.c b/src/gameScreen.c index 64d285c..d02e9be 100644 --- a/src/gameScreen.c +++ b/src/gameScreen.c @@ -3,6 +3,7 @@ #include "world.h" #include "bullets.h" #include "assets.h" +#include "killLog.h" #include "entitiesInclude.h" void initGameScreenGui(GameScreen * gameScreen) { @@ -19,6 +20,8 @@ void initGameScreenGui(GameScreen * gameScreen) { gameScreen->zoomViewPosition = (Vector2){width - GAME_SCREEN_ZOOM_VIEW_UI_SIZE - 20.0, 10.0}; + gameScreen->killLogPosition = (Vector2){0.0, 40.0}; + // Gyroscope indeed initGyroscope(&gameScreen->gyroscope); @@ -171,6 +174,7 @@ void drawGameScreenGui(Game * game) { drawCrossHair(10.0, 2.0, color); } + drawKillLog(&game->killLog, gameScreen->killLogPosition); drawGameScreenInfoText(game, gameScreen); drawGameScreenTargetInfo(game, gameScreen); drawGyroscope(game, &gameScreen->gyroscope); |