diff options
| author | aleksav013 <aleksav013@gmail.com> | 2021-06-03 15:41:37 +0200 |
|---|---|---|
| committer | aleksav013 <aleksav013@gmail.com> | 2021-06-03 15:41:37 +0200 |
| commit | 2002db81a90af09ebc281b8f54f7f2544b92780b (patch) | |
| tree | 1026d9d5ff0a9611f4985bce540638adc3aad5b9 /src/includes/Game.hpp | |
| parent | 4a4ed128e30bb7318cef1e5f74f28a0c96fe1686 (diff) | |
Adding Pause/GameOver screen
Diffstat (limited to 'src/includes/Game.hpp')
| -rw-r--r-- | src/includes/Game.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/includes/Game.hpp b/src/includes/Game.hpp index 4418ab3..a85d384 100644 --- a/src/includes/Game.hpp +++ b/src/includes/Game.hpp @@ -11,7 +11,7 @@ class Game { private: sf::Font font; - sf::Texture healthtex,neprijateljtex; + sf::Texture *healthtex,*neprijateljtex; float dt; sf::Clock sat,time; @@ -30,12 +30,10 @@ class Game void keyboard(); void run(); - void draw(); void stompmain(); void updateui(); void updatedt(); - bool gameover(); void respawn(); void position(); void checkcollision(); @@ -47,8 +45,10 @@ class Game void updatewin(); public: Game() {} - Game(sf::RenderWindow *glprozor); + Game(sf::RenderWindow *glprozor,sf::Font font,sf::Texture *neprijateljtex,sf::Texture *healthtex); void loop(bool ischanged,bool pause); + void draw(); + bool gameover(); }; #endif |
