aboutsummaryrefslogtreecommitdiff
path: root/interface.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 /interface.c
parent6307feb53d978cbf7f50df26a7b0bc63252cfbd4 (diff)
downloadstalag-16adefc98106a7f401a00864122f65f64305ecce.tar.gz
Refactor crosshair
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/interface.c b/interface.c
new file mode 100644
index 0000000..a376ed2
--- /dev/null
+++ b/interface.c
@@ -0,0 +1,8 @@
1#include "all.h"
2
3void DrawCrosshair(void) {
4 int screenWidth = GetScreenWidth();
5 int screenHeight = GetScreenHeight();
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);
8}