aboutsummaryrefslogtreecommitdiff
path: root/src/radar.h
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-09-23 21:25:54 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-09-23 21:25:54 -0600
commitc8132c56f0d1d712e4841a60f9f0f853e7177715 (patch)
treee770618d1d3acd7f2768c51ad497e318d1dbd286 /src/radar.h
parent6ba19e2332162de3225d60ae2a377a894ab7299f (diff)
Radar working
Diffstat (limited to 'src/radar.h')
-rw-r--r--src/radar.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/radar.h b/src/radar.h
new file mode 100644
index 0000000..c250e28
--- /dev/null
+++ b/src/radar.h
@@ -0,0 +1,28 @@
+#include "gameCommon.h"
+
+#ifndef RADAR_H
+#define RADAR_H
+
+#define RADAR_TEXTURE_SIZE 200
+#define RADAR_WORLD_SCALE 0.005
+#define RADAR_POINT_SIZE 0.25
+#define RADAR_MAX_DISTANCE 1000.0
+#define RADAR_CAMERA_DISTANCE 6.0
+
+#define RADAR_COLOR (Color){255, 255, 255, 85}
+#define RADAR_CROSS_COLOR (Color){YELLOW.r, YELLOW.g, YELLOW.b, 127}
+
+typedef struct Radar {
+ Vector2 position;
+ Camera3D camera;
+ RenderTexture texture;
+} Radar;
+
+void initRadar(Radar * radar);
+void closeRadar(Radar * radar);
+
+void resetRadarPosition(Radar * radar);
+
+void drawRadar(Game * game, Radar * radar);
+
+#endif