Add print at position shortcuts

This commit is contained in:
Scott Lahteine
2019-08-22 19:36:18 -05:00
parent 5c0e5c599f
commit 7924e0d819
10 changed files with 77 additions and 134 deletions

View File

@@ -416,8 +416,7 @@ void InvadersGame::game_screen() {
// Draw Score
//const uint8_t sx = (LCD_PIXEL_WIDTH - (score >= 10 ? score >= 100 ? score >= 1000 ? 4 : 3 : 2 : 1) * MENU_FONT_WIDTH) / 2;
constexpr uint8_t sx = 0;
lcd_moveto(sx, MENU_FONT_ASCENT - 1);
lcd_put_int(score);
lcd_put_int(sx, MENU_FONT_ASCENT - 1, score);
// Draw lives
if (idat.cannons_left)