From 16adefc98106a7f401a00864122f65f64305ecce Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 30 Apr 2026 19:07:38 +0200 Subject: Refactor crosshair --- interface.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 interface.c (limited to 'interface.c') diff --git a/interface.c b/interface.c new file mode 100644 index 0000000..a376ed2 --- /dev/null +++ b/interface.c @@ -0,0 +1,8 @@ +#include "all.h" + +void DrawCrosshair(void) { + int screenWidth = GetScreenWidth(); + int screenHeight = GetScreenHeight(); + DrawLine(screenWidth / 2 - 10, screenHeight / 2, screenWidth / 2 + 10, screenHeight / 2, GREEN); + DrawLine(screenWidth / 2, screenHeight / 2 - 10, screenWidth / 2, screenHeight / 2 + 10, GREEN); +} -- cgit v1.2.3