minors
This commit is contained in:
@@ -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++;
|
||||||
|
|||||||
Reference in New Issue
Block a user