static uint8_t tick(void) { tetris_update(); int lines = get_lines(0); if(lines > highscore) { flash_db_write(ADDR_TETRIS_HIGHSCORE,lines); highscore = lines; } fill_8x6(15,5, 3,0,0,0); draw_number_8x6(15,5, lines, 3, ' ' ,255,255,255); draw_text_8x6(5, 90, "Highscore",255,255,255); fill_8x6(5,100, 3,0,0,0); draw_number_8x6(5,100, highscore, 3, '0' ,255,255,255); return 0; }
static uint8_t tick(void) { tetris_update(); for(int i = 0; i < 3; i++) { int lines = get_lines(i); fill_8x6(i * 36 +15,5, 3,0,0,0); draw_number_8x6(i * 36 + 15,5, lines, 3, ' ' ,255,255,255); } return 0; }