From 2002db81a90af09ebc281b8f54f7f2544b92780b Mon Sep 17 00:00:00 2001 From: aleksav013 Date: Thu, 3 Jun 2021 15:41:37 +0200 Subject: Adding Pause/GameOver screen --- src/includes/State.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/includes/State.hpp') diff --git a/src/includes/State.hpp b/src/includes/State.hpp index fdde7b8..453939f 100644 --- a/src/includes/State.hpp +++ b/src/includes/State.hpp @@ -7,8 +7,18 @@ class State private: sf::RenderWindow prozor; int visina,sirina; - bool ischanged=0,pause=0; + bool ischanged=0,newgame=0,pause=0,kraj=0; + sf::Font font; + sf::Texture healthtex,neprijateljtex; + + sf::RectangleShape podloga; + sf::Text pausetext,krajtext; + + void initassets(); + void initwin(); + void initui(); + void updateui(); void events(); void keyboard(); public: -- cgit v1.2.3