From 36fdc5a7001f464b00f003f67fb6e886ed32c60b Mon Sep 17 00:00:00 2001 From: aleksav013 Date: Sat, 5 Jun 2021 19:11:51 +0200 Subject: Grouping assets; Moving krug to Player --- src/includes/Game.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/includes/Game.hpp') diff --git a/src/includes/Game.hpp b/src/includes/Game.hpp index a85d384..5b935a4 100644 --- a/src/includes/Game.hpp +++ b/src/includes/Game.hpp @@ -10,8 +10,8 @@ class Game { private: - sf::Font font; - sf::Texture *healthtex,*neprijateljtex; + std::map font; + std::map tex; float dt; sf::Clock sat,time; @@ -24,7 +24,6 @@ class Game int visina,sirina; sf::RenderWindow *prozor; - sf::CircleShape krug; sf::RectangleShape health,healthblank,stomp,stompblank; sf::Text healthtext,stomptext,fps,score; @@ -44,8 +43,7 @@ class Game void initent(); void updatewin(); public: - Game() {} - Game(sf::RenderWindow *glprozor,sf::Font font,sf::Texture *neprijateljtex,sf::Texture *healthtex); + Game(sf::RenderWindow *glprozor,std::map mainfont,std::map maintex); void loop(bool ischanged,bool pause); void draw(); bool gameover(); -- cgit v1.2.3