aboutsummaryrefslogtreecommitdiff
path: root/game.c
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-04-30 19:07:38 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-04-30 19:07:38 +0200
commit16adefc98106a7f401a00864122f65f64305ecce (patch)
tree53f2e729eab38e34cb2efdb9216dd90130fa39b6 /game.c
parent6307feb53d978cbf7f50df26a7b0bc63252cfbd4 (diff)
downloadstalag-16adefc98106a7f401a00864122f65f64305ecce.tar.gz
Refactor crosshair
Diffstat (limited to 'game.c')
-rw-r--r--game.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/game.c b/game.c
index 19a1875..dc54ce5 100644
--- a/game.c
+++ b/game.c
@@ -324,10 +324,7 @@ void DrawGame(void) {
324 324
325 EndMode3D(); 325 EndMode3D();
326 326
327 int screenWidth = GetScreenWidth(); 327 DrawCrosshair();
328 int screenHeight = GetScreenHeight();
329 DrawLine(screenWidth / 2 - 10, screenHeight / 2, screenWidth / 2 + 10, screenHeight / 2, GREEN);
330 DrawLine(screenWidth / 2, screenHeight / 2 - 10, screenWidth / 2, screenHeight / 2 + 10, GREEN);
331 328
332 DrawTextEx(game.font_ui, TextFormat("%i FPS", GetFPS()), (Vector2){ 10, 10 }, 20, 2, GREEN); 329 DrawTextEx(game.font_ui, TextFormat("%i FPS", GetFPS()), (Vector2){ 10, 10 }, 20, 2, GREEN);
333 DrawTextEx(game.font_ui, TextFormat("VSync: %s", game.vsync ? "ON" : "OFF"), (Vector2){ 10, 35 }, 20, 2, GREEN); 330 DrawTextEx(game.font_ui, TextFormat("VSync: %s", game.vsync ? "ON" : "OFF"), (Vector2){ 10, 35 }, 20, 2, GREEN);