diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-30 19:07:38 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-30 19:07:38 +0200 |
| commit | 16adefc98106a7f401a00864122f65f64305ecce (patch) | |
| tree | 53f2e729eab38e34cb2efdb9216dd90130fa39b6 /game.c | |
| parent | 6307feb53d978cbf7f50df26a7b0bc63252cfbd4 (diff) | |
| download | stalag-16adefc98106a7f401a00864122f65f64305ecce.tar.gz | |
Refactor crosshair
Diffstat (limited to 'game.c')
| -rw-r--r-- | game.c | 5 |
1 files changed, 1 insertions, 4 deletions
| @@ -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); |
