aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-09-24 21:52:29 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-09-24 21:52:29 -0600
commit40fed1ffc124a15d6ab1991f59cc05208448b515 (patch)
tree3d805ca76021867190b92adf56fcd890c40113d5
parent6c2037ad2c6303545cc051120c00663def468a2a (diff)
Moved around radar colors
-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;