Update DeathScreen message text for clarity and capitalisation.

Updated button label from 'Title menu' to 'Exit to Title Menu' and changed 'Game over!' to 'Game Over!' for consistency.
This commit is contained in:
Jazzitch 2026-03-20 02:13:53 -04:00 committed by GitHub
parent 8dbbee61b7
commit 8db8236662
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@ void DeathScreen::init()
{ {
buttons.clear(); buttons.clear();
buttons.push_back(new Button(1, width / 2 - 100, height / 4 + 24 * 3, L"Respawn")); buttons.push_back(new Button(1, width / 2 - 100, height / 4 + 24 * 3, L"Respawn"));
buttons.push_back(new Button(2, width / 2 - 100, height / 4 + 24 * 4, L"Title menu")); buttons.push_back(new Button(2, width / 2 - 100, height / 4 + 24 * 4, L"Exit to Title Menu"));
if (minecraft->user == nullptr) if (minecraft->user == nullptr)
{ {
@ -46,7 +46,7 @@ void DeathScreen::render(int xm, int ym, float a)
glPushMatrix(); glPushMatrix();
glScalef(2, 2, 2); glScalef(2, 2, 2);
drawCenteredString(font, L"Game over!", width / 2 / 2, 60 / 2, 0xffffff); drawCenteredString(font, L"Game Over!", width / 2 / 2, 60 / 2, 0xffffff);
glPopMatrix(); glPopMatrix();
drawCenteredString(font, L"Score: &e" + std::to_wstring( minecraft->player->getScore() ), width / 2, 100, 0xffffff); drawCenteredString(font, L"Score: &e" + std::to_wstring( minecraft->player->getScore() ), width / 2, 100, 0xffffff);
@ -64,4 +64,4 @@ void DeathScreen::render(int xm, int ym, float a)
bool DeathScreen::isPauseScreen() bool DeathScreen::isPauseScreen()
{ {
return false; return false;
} }