diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-05 16:36:38 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-05 16:36:38 +0100 |
commit | 2726785d64aa117aff0791d4591046c442709aac (patch) | |
tree | ce5b7d2fb240e87597d70e1f1be544e9672212e3 /game/hud/HudConfig.h | |
parent | ba170d00586ab261e015cc2febbb43f9aa7ae43e (diff) |
improved hud
Diffstat (limited to 'game/hud/HudConfig.h')
-rw-r--r-- | game/hud/HudConfig.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/game/hud/HudConfig.h b/game/hud/HudConfig.h index 91e3bfa..983a557 100644 --- a/game/hud/HudConfig.h +++ b/game/hud/HudConfig.h @@ -1,7 +1,7 @@ #pragma once #include "types.h" -static constexpr crepe::vec2 TOP_LEFT = {-500,-380}; +static constexpr crepe::vec2 TOP_LEFT = {-530,-380}; static constexpr const char* HUD_DISTANCE = "hud_distance"; static constexpr const char* HUD_BEST = "hud_best"; static constexpr const char* HUD_COINS = "hud_coins"; @@ -10,19 +10,19 @@ static constexpr const char* HUD_COINS = "hud_coins"; static constexpr const char* DISTANCE_PLACEHOLDER = "0000m"; static constexpr const char* DISTANCE_UNIT = "m"; static constexpr int DISTANCE_LENGTH = 5; -static constexpr float DISTANCE_WIDTH = 60; +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_WIDTH = 40; +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_WIDTH = 40; +static constexpr float COINS_CHAR_WIDTH = 10; static constexpr crepe::vec2 COINS_OFFSET = {0,50};
\ No newline at end of file |