Commit 5c37bc3a authored by Valentin Bartschies's avatar Valentin Bartschies
Browse files

Different messege when you killed all aliens

parent 8d3a3b25
#include "raylib.h"
#include "game.h"
#include <stddef.h>
......@@ -38,8 +39,11 @@ void calcGameOver(int s) {
void drawGameOver() {
DrawText("GAME OVER!", (int) gameOverBtnPos.x, (int) gameOverBtnPos.y, GAME_OVER_FONT_SIZE, RED);
if (!allAliensDead()) {
DrawText("GAME OVER!", (int) gameOverBtnPos.x, (int) gameOverBtnPos.y, GAME_OVER_FONT_SIZE, RED);}
DrawText(FormatText("Score: %d s", score), (int) scoreBtnPos.x, (int) scoreBtnPos.y, SCORE_FONT_SIZE, RED);
DrawText(FormatText("Highscore: %d s", highscore), (int) highscoreBtnPos.x, (int) highscoreBtnPos.y, SCORE_FONT_SIZE, RED);
DrawText("Press <Enter> to continue...", (int) continueBtnPos.x, (int) continueBtnPos.y, CONTINUE_FONT_SIZE, WHITE);
if (allAliensDead()) {
DrawText(" YOU WON! ", (int) gameOverBtnPos.x, (int) gameOverBtnPos.y, GAME_OVER_FONT_SIZE, RED);}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment