aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/radar.c4
-rw-r--r--src/radar.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/radar.c b/src/radar.c
index 309251b..192617e 100644
--- a/src/radar.c
+++ b/src/radar.c
@@ -53,7 +53,7 @@ void drawRadar3DParts(Game * game, Radar * radar) {
DrawSphere(
Vector3Scale(Vector3Subtract(entity->position, player->position), RADAR_WORLD_SCALE),
RADAR_POINT_SIZE,
- BLACK
+ RADAR_ENTITY_COLOR
);
}
@@ -69,7 +69,7 @@ void drawRadar3DParts(Game * game, Radar * radar) {
RADAR_POINT_SIZE,
0.0,
8,
- BLUE
+ RADAR_PLAYER_COLOR
);
EndMode3D();
diff --git a/src/radar.h b/src/radar.h
index 6b946e1..ecb44ba 100644
--- a/src/radar.h
+++ b/src/radar.h
@@ -11,6 +11,8 @@
#define RADAR_COLOR (Color){255, 255, 255, 85}
#define RADAR_CROSS_COLOR (Color){YELLOW.r, YELLOW.g, YELLOW.b, 127}
+#define RADAR_ENTITY_COLOR BLACK
+#define RADAR_PLAYER_COLOR BLUE
typedef struct Radar {
Vector2 position;