[ADD] gameover scene shows the points
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user