This commit is contained in:
andrea
2023-11-08 19:23:04 +01:00
parent b07c5e88cd
commit e39255d921

View File

@@ -63,11 +63,7 @@ void setup() {
randomSeed(analogRead(0)); randomSeed(analogRead(0));
} }
void game_over() { void show_points_inside_matrix() {
// show gameover frame
matrix.loadFrame(frame_game_over);
delay(1000);
// show points inside the matrix // show points inside the matrix
// clear the old frame // clear the old frame
for (int i=0; i < 12; i++) { for (int i=0; i < 12; i++) {
@@ -87,6 +83,13 @@ void game_over() {
running= false; running= false;
} }
void game_over() {
// show gameover frame
matrix.loadFrame(frame_game_over);
delay(1000);
show_points_inside_matrix();
}
void add_tail_block() { void add_tail_block() {
snake_len++; snake_len++;