aboutsummaryrefslogtreecommitdiff
path: root/game/menus/endgame/EndGameSubScene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/menus/endgame/EndGameSubScene.cpp')
-rw-r--r--game/menus/endgame/EndGameSubScene.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/game/menus/endgame/EndGameSubScene.cpp b/game/menus/endgame/EndGameSubScene.cpp
index 0b72bdc..b33072a 100644
--- a/game/menus/endgame/EndGameSubScene.cpp
+++ b/game/menus/endgame/EndGameSubScene.cpp
@@ -73,21 +73,24 @@ void EndGameSubScene::create(Scene & scn) {
.world_space = false,
.text_color = Color::WHITE,
},
- vec2 {0, Y_SPACING+Y_OFFSET} + FONTOFFSET, DISTANCE_STRING
+ vec2 {0, Y_SPACING + Y_OFFSET} + FONTOFFSET, DISTANCE_STRING
);
// Highscore
const string HIGHSCORE_STRING = "NEW HIGHSCORE";
GameObject highscore = scn.new_object("highscore_endgame", "highscore_tag_end");
crepe::vec2 size_highscore = {200, (200.0f / HIGHSCORE_STRING.size()) * 2};
- highscore.add_component<Text>(
- size_highscore, FONT,
- Text::Data {
- .world_space = false,
- .text_color = Color::WHITE,
- },
- vec2 {0, Y_SPACING*2+Y_OFFSET} + FONTOFFSET, HIGHSCORE_STRING
- ).active = false;
+ highscore
+ .add_component<Text>(
+ size_highscore, FONT,
+ Text::Data {
+ .world_space = false,
+ .text_color = Color::WHITE,
+ },
+ vec2 {0, Y_SPACING * 2 + Y_OFFSET} + FONTOFFSET, HIGHSCORE_STRING
+ )
+ .active
+ = false;
// Buttons
vec2 button_position = {190, 190};