Add "clear" text when all asteroids destroyed
This commit is contained in:
2
game.c
2
game.c
@@ -494,6 +494,8 @@ void game_draw()
|
||||
shapes[i].connect);
|
||||
}
|
||||
|
||||
if (asteroid_count == 0)
|
||||
text_draw("CLEAR");
|
||||
if (dead && !(counter & COUNTER_MASK))
|
||||
text_draw("GAME OVER");
|
||||
}
|
||||
|
||||
14
text.c
14
text.c
@@ -34,6 +34,13 @@ static const glyph_t font[] = {
|
||||
{ { -0.75, -2 }, { 0.75, -2 } },
|
||||
},
|
||||
},
|
||||
['C'] = {
|
||||
.line_count = 1,
|
||||
.line_lens = { 4 },
|
||||
.lines = {
|
||||
{ { 1, 4 }, { -1, 4 }, { -1, -4 }, { 1, -4 } },
|
||||
},
|
||||
},
|
||||
['E'] = {
|
||||
.line_count = 2,
|
||||
.line_lens = { 4, 2 },
|
||||
@@ -49,6 +56,13 @@ static const glyph_t font[] = {
|
||||
{ { 1, 4 }, { -1, 4 }, { -1, -4 }, { 1, -4 }, { 1, -2 } },
|
||||
},
|
||||
},
|
||||
['L'] = {
|
||||
.line_count = 1,
|
||||
.line_lens = { 3 },
|
||||
.lines = {
|
||||
{ { -1, 4 }, { -1, -4 }, { 1, -4 } },
|
||||
},
|
||||
},
|
||||
['M'] = {
|
||||
.line_count = 1,
|
||||
.line_lens = { 5 },
|
||||
|
||||
Reference in New Issue
Block a user