Untitled
#pragma once #include "Tetromino.h" #include "Field.h" #include "Score.h" class Game { public: Game(); void run(); private: void handleEvents(); void update(); void render(); void reset(); Tetromino tetromino; Field field; Score score; sf::RenderWindow window; sf::Texture texture; sf::Sprite sprite; sf::Font font; sf::Text scoreText; sf::Text highScoreText; sf::Text gameOverText; sf::Text playAgainText; bool gameOver; };
Leave a Comment