Untitled

mail@pastecode.io avatar
unknown
plain_text
21 days ago
327 B
2
Indexable
Never
#pragma once
#include <SFML/Graphics.hpp>

class Field {
public:
    Field();
    void reset();
    void draw(sf::Sprite &sprite, sf::RenderWindow &window) const;
    void checkLines(int &score);
    bool isGameOver() const;
    void setGameOver(bool status);
    int field[23][10];
    int M, N;
private:
    bool gameOver;
};
Leave a Comment