aboutsummaryrefslogtreecommitdiff
path: root/game/hud/HudConfig.h
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-08 09:52:00 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-08 09:52:00 +0100
commitb1824253875901b4fb6f4c5fee72aea6d807d370 (patch)
tree8acc156e68d48022f453dcf06b541f77a5803484 /game/hud/HudConfig.h
parente9082de7d114ce024a884cac38c545c99de4026a (diff)
parente75ca1c947f3cde19bebf15049732bc069c6e913 (diff)
Merge remote-tracking branch 'origin/master' into max/game2
Diffstat (limited to 'game/hud/HudConfig.h')
-rw-r--r--game/hud/HudConfig.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/game/hud/HudConfig.h b/game/hud/HudConfig.h
new file mode 100644
index 0000000..facc298
--- /dev/null
+++ b/game/hud/HudConfig.h
@@ -0,0 +1,33 @@
+#pragma once
+#include <crepe/types.h>
+
+static constexpr crepe::vec2 TOP_LEFT = {-530, -230};
+static constexpr const char * HUD_DISTANCE = "hud_distance";
+static constexpr const char * HUD_BEST = "hud_best";
+static constexpr const char * HUD_COINS = "hud_coins";
+static constexpr const char * HUD_FPS = "hud_fps";
+
+// Distance
+static constexpr const char * DISTANCE_PLACEHOLDER = "0000m";
+static constexpr const char * DISTANCE_UNIT = "m";
+static constexpr int DISTANCE_LENGTH = 5;
+static constexpr float DISTANCE_CHAR_WIDTH = 12;
+static constexpr float STEP_SIZE_DISTANCE = 100;
+
+// BEST
+static constexpr const char * BEST = "BEST:";
+static constexpr int BEST_LENGTH = 5;
+static constexpr float BEST_CHAR_WIDTH = 10;
+static constexpr crepe::vec2 BEST_OFFSET = {0, 25};
+
+// COINS
+static constexpr const char * COINS = "0000";
+static constexpr int COINS_LENGTH = 4;
+static constexpr float COINS_CHAR_WIDTH = 10;
+static constexpr crepe::vec2 COINS_OFFSET = {0, 50};
+
+// FPS
+static constexpr const char * FPS = "00";
+static constexpr int FPS_LENGTH = 2;
+static constexpr float FPS_CHAR_WIDTH = 10;
+static constexpr crepe::vec2 FPS_OFFSET = {1030, 0};