Untitled

mail@pastecode.io avatar
unknown
plain_text
5 months ago
502 B
3
Indexable
#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