mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-18 11:29:21 +01:00
Add sun / moon, started on score / GameManager
This commit is contained in:
@@ -18,6 +18,10 @@ MainScreen::MainScreen(TextureManager* manager) : Screen("", Vector2f{0, 0}, Vec
|
||||
Vector2f DepthMeterPosition{10, ScreenSize.y - 120};
|
||||
m_DepthText = new GuiText(DepthMeterPosition, "Depth: 20", "fonts/Arial.ttf", 20, Colors::YELLOW);
|
||||
this->AddElement(m_DepthText);
|
||||
|
||||
Vector2f ScoreMeterPosition{10, ScreenSize.y - 150};
|
||||
m_ScoreText = new GuiText(ScoreMeterPosition, "Score: 0", "fonts/Arial.ttf", 20, Colors::YELLOW);
|
||||
this->AddElement(m_ScoreText);
|
||||
}
|
||||
MainScreen::~MainScreen() = default;
|
||||
void MainScreen::Draw() const {
|
||||
@@ -35,4 +39,7 @@ void MainScreen::SetHullMeterValue(float value) const {
|
||||
void MainScreen::SetDepth(const std::string& text) const {
|
||||
m_DepthText->ChangeText(text);
|
||||
}
|
||||
void MainScreen::SetScore(const std::string& text) const {
|
||||
m_ScoreText->ChangeText(text);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user