Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d3742d73ea |
12
game.c
12
game.c
@@ -144,10 +144,14 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (result == WALL || result == SNAKE)
|
||||
{
|
||||
MLV_draw_text(
|
||||
width / 2 - 75, height / 2,
|
||||
"Game Over! You hit something.",
|
||||
MLV_COLOR_RED);
|
||||
if (result == WALL)
|
||||
{
|
||||
MLV_draw_text(width / 2 - 75, height / 2, "Game Over! You hit a wall.", MLV_COLOR_RED);
|
||||
}
|
||||
else if (result == SNAKE)
|
||||
{
|
||||
MLV_draw_text(width / 2 - 75, height / 2, "Game Over! You hit yourself.", MLV_COLOR_RED);
|
||||
}
|
||||
MLV_actualise_window();
|
||||
MLV_wait_seconds(3);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user