[Added] Pause and Game Over screens

This commit is contained in:
Ninjaws
2024-12-11 23:20:10 +01:00
parent 7bdd8829b0
commit 770d3e3c71
10 changed files with 275 additions and 25 deletions
+33
View File
@@ -0,0 +1,33 @@
#ifndef GAME_OVER_SCREEN_H
#define GAME_OVER_SCREEN_H
#include "screens/Screen.h"
#include "raylib.h"
#include "services/AudioService.h"
class GameOverScreen : public Screen
{
public:
GameOverScreen()
{
AudioService::getInstance().setMusic(EMusic::GAME_OVER);
AudioService::getInstance().playMusic();
}
void logic() override
{
}
void draw() override
{
BeginDrawing();
// ClearBackground((Color){255,0,0,100});
DrawRectangle(0, 0, 640, 544, (Color){255,0,0,65});
EndDrawing();
}
private:
};
#endif