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

@@ -231,10 +231,7 @@ void SnakeGame::game_screen() {
u8g.setColorIndex(1);
// Draw Score
if (PAGE_UNDER(HEADER_H)) {
lcd_moveto(0, HEADER_H - 1);
lcd_put_int(score);
}
if (PAGE_UNDER(HEADER_H)) lcd_put_int(0, HEADER_H - 1, score);
// DRAW THE PLAYFIELD BORDER
u8g.drawFrame(BOARD_L - 2, BOARD_T - 2, BOARD_R - BOARD_L + 4, BOARD_B - BOARD_T + 4);