Position coin counter from right edge of screen

This commit is contained in:
Nadia Holmquist Pedersen 2020-10-28 03:02:19 +01:00
parent 8b872a71e8
commit 80953505f1

View file

@ -275,9 +275,9 @@ void render_hud_mario_lives(void) {
* Renders the amount of coins collected.
*/
void render_hud_coins(void) {
print_text(168, HUD_TOP_Y, "+"); // 'Coin' glyph
print_text(184, HUD_TOP_Y, "*"); // 'X' glyph
print_text_fmt_int(198, HUD_TOP_Y, "%d", gHudDisplay.coins);
print_text(GFX_DIMENSIONS_RECT_FROM_RIGHT_EDGE(152), HUD_TOP_Y, "+"); // 'Coin' glyph
print_text(GFX_DIMENSIONS_RECT_FROM_RIGHT_EDGE(136), HUD_TOP_Y, "*"); // 'X' glyph
print_text_fmt_int(GFX_DIMENSIONS_RECT_FROM_RIGHT_EDGE(122), HUD_TOP_Y, "%d", gHudDisplay.coins);
}
#ifdef VERSION_JP