Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.

Commit

Permalink
Arranged the text on the Game Over screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Jibran Syed committed Apr 28, 2014
1 parent 0312f56 commit 133c040
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions HedronSpace/GameOverScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ namespace sfew

auto scoreEvaluator = GameObjectContainer::Create();
scoreEvaluator._Get()->AddCustomComponent<component::ScoreEvaluator>();
auto scoreFontRenderer = scoreEvaluator._Get()->GetComponent<FontRendererComponent>()._Get()->GetRenderer();
scoreFontRenderer._Get()->SetPosition(190, 487);

return true;
}
Expand Down
6 changes: 3 additions & 3 deletions HedronSpace/ScoreEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 133c040

Please sign in to comment.