aboutsummaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-04-30 19:09:18 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-04-30 19:09:28 +0200
commitddde2e8fdf05efac5914ca2b812b7762b78ba9ec (patch)
treeac6301455732741846c9b2eb24c61cca27f9e062 /interface.c
parent16adefc98106a7f401a00864122f65f64305ecce (diff)
downloadstalag-ddde2e8fdf05efac5914ca2b812b7762b78ba9ec.tar.gz
Refactor debug info
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/interface.c b/interface.c
index a376ed2..d2cb4e0 100644
--- a/interface.c
+++ b/interface.c
@@ -6,3 +6,9 @@ void DrawCrosshair(void) {
6 DrawLine(screenWidth / 2 - 10, screenHeight / 2, screenWidth / 2 + 10, screenHeight / 2, GREEN); 6 DrawLine(screenWidth / 2 - 10, screenHeight / 2, screenWidth / 2 + 10, screenHeight / 2, GREEN);
7 DrawLine(screenWidth / 2, screenHeight / 2 - 10, screenWidth / 2, screenHeight / 2 + 10, GREEN); 7 DrawLine(screenWidth / 2, screenHeight / 2 - 10, screenWidth / 2, screenHeight / 2 + 10, GREEN);
8} 8}
9
10void DrawDebugInfo(void) {
11 DrawTextEx(game.font_ui, TextFormat("%i FPS", GetFPS()), (Vector2){ 10, 10 }, 20, 2, GREEN);
12 DrawTextEx(game.font_ui, TextFormat("VSync: %s", game.vsync ? "ON" : "OFF"), (Vector2){ 10, 35 }, 20, 2, GREEN);
13 DrawTextEx(game.font_ui, TextFormat("Speed: %.0f", game.horizontal_speed), (Vector2){ 10, 60 }, 20, 2, GREEN);
14}