mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 13:35:12 +00:00
Added 'no lives remaining' text
This commit is contained in:
parent
42777fbe8f
commit
e48a9c25ab
1 changed files with 9 additions and 1 deletions
|
@ -299,7 +299,15 @@ void render_hud_mario_lives(void) {
|
|||
char* displayHead = (gNetworkType == NT_SERVER) ? "," : ".";
|
||||
#endif
|
||||
print_text(GFX_DIMENSIONS_RECT_FROM_LEFT_EDGE(22), HUD_TOP_Y, displayHead); // 'Mario Head' glyph
|
||||
if (gHudDisplay.lives == -1) { return; }
|
||||
if (gHudDisplay.lives == -1) {
|
||||
gSPDisplayList(gDisplayListHead++, dl_ia_text_begin);
|
||||
u8 a = ((gGlobalTimer % 24) >= 12) ? 200 : 170;
|
||||
gDPSetEnvColor(gDisplayListHead++, 0, 0, 0, a);
|
||||
print_generic_ascii_string(100, 10, "no lives remaining");
|
||||
gSPDisplayList(gDisplayListHead++, dl_ia_text_end);
|
||||
|
||||
return;
|
||||
}
|
||||
print_text(GFX_DIMENSIONS_RECT_FROM_LEFT_EDGE(38), HUD_TOP_Y, "*"); // 'X' glyph
|
||||
print_text_fmt_int(GFX_DIMENSIONS_RECT_FROM_LEFT_EDGE(54), HUD_TOP_Y, "%d", gHudDisplay.lives);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue