Untitled
unknown
plain_text
a year ago
653 B
7
Indexable
#ifndef GAME_H
#define GAME_H
#include <SFML/Graphics.hpp>
#include "Tetromino.h"
#include "Field.h"
#include "Score.h"
class Game {
public:
Game();
void run();
private:
sf::RenderWindow window;
sf::Texture t1, t2, t3;
sf::Sprite s, frame;
sf::Font font;
sf::Text gameOverText, playAgainText;
sf::RectangleShape background, playfieldBoundary, nextTempoBoundary, scoreBoundary, highScoreBoundary;
Field field;
Tetromino tetromino;
Score score;
float timer, delay;
bool gameOver;
void init();
void processEvents();
void update();
void render();
void reset();
};
#endif // GAME_HEditor is loading...
Leave a Comment