[ADD] gameover scene shows the points

This commit is contained in:
DESKTOP-EBR7IVA\kimve
2021-06-18 13:35:19 +02:00
parent ca61dfc781
commit 824f9a2433
6 changed files with 75 additions and 30 deletions

View File

@@ -9,10 +9,15 @@ namespace scene
class Game_Over_Scene : public scene::Scene
{
private:
int end_score;
scene::Scenes return_value = scene::Scenes::GAMEOVER;
std::vector<std::shared_ptr<gui::GuiTexture>> score_guis_gameOver;
std::shared_ptr<gui::GuiTexture> game_over_texture;
public:
Game_Over_Scene();
Game_Over_Scene(int score);
Scenes start(GLFWwindow* window) override;
@@ -21,6 +26,10 @@ namespace scene
void update(GLFWwindow* window) override;
void onKey(GLFWwindow* window, int key, int scancode, int action, int mods) override;
/**
* @brief: This method renders the score points onto the game window
* @param score: Score to show
*/
void DrawScore(int score);
};
}