From 133c040f7816a3f6ac592314a9873139d1d11757 Mon Sep 17 00:00:00 2001 From: Jibran Syed Date: Mon, 28 Apr 2014 01:51:20 -0500 Subject: [PATCH] Arranged the text on the Game Over screen --- HedronSpace/GameOverScene.cpp | 2 ++ HedronSpace/ScoreEvaluator.cpp | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/HedronSpace/GameOverScene.cpp b/HedronSpace/GameOverScene.cpp index d5df3b6..8bde8ce 100644 --- a/HedronSpace/GameOverScene.cpp +++ b/HedronSpace/GameOverScene.cpp @@ -84,6 +84,8 @@ namespace sfew auto scoreEvaluator = GameObjectContainer::Create(); scoreEvaluator._Get()->AddCustomComponent(); + auto scoreFontRenderer = scoreEvaluator._Get()->GetComponent()._Get()->GetRenderer(); + scoreFontRenderer._Get()->SetPosition(190, 487); return true; } diff --git a/HedronSpace/ScoreEvaluator.cpp b/HedronSpace/ScoreEvaluator.cpp index 34c9f15..4ef103a 100644 --- a/HedronSpace/ScoreEvaluator.cpp +++ b/HedronSpace/ScoreEvaluator.cpp @@ -47,9 +47,9 @@ namespace sfew // Write final results hudOut.str(std::string()); - hudOut << "Score: " << finalScore << std::endl - << "Gems: " << finalGems << std::endl - << "Level: " << finalLevel; + hudOut << "Score: " << finalScore + << " Gems: " << finalGems + << " Level: " << finalLevel; _fontRenderer._Get()->SetTextString(hudOut.str()); }