#pragma once #include "../GameEngine/Engine_Messaging_System/EngineMessageSystem.h" #include "../GameEngine/Engine_Text/Text.h" #include "../GameEngine/Engine_Graphics/Scene.h" #include "../GameEngine/Engine_Physics/Entity.h" #include "../GameEngine/Engine_Core/BaseGameEvents.h" #include // Display message in the game/on the window class Score : public EngineMessageSystem { public: Score(Scene& inputScene); ~Score(); void play(const sf::Time& elapsedTime) override; void recieveEngineMessage(const SystemMessage& inputSystemMessage) override; protected: sf::Time time; Entity* entityPlayer; const float playerAim = 782; const float basePlatformHeight = 556.0f; const float playerDead = -5.0f; int highScore; bool gameOver = false; bool win = false; };