Add font and fast programming to test the game
This commit is contained in:
parent
1bf3038477
commit
6b37ae07ff
9 changed files with 178 additions and 15 deletions
|
@ -3,6 +3,8 @@
|
|||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <SFML/Window.hpp>
|
||||
#include <SFML/Graphics.hpp>
|
||||
|
||||
|
@ -15,12 +17,15 @@ class MainWindow : public sf::RenderWindow{
|
|||
int m_sizeCell;
|
||||
int m_spaceBetweenCell;
|
||||
sf::Vector2u m_windowSize;
|
||||
|
||||
public:
|
||||
MainWindow(int width, int height, std::string title);
|
||||
~MainWindow();
|
||||
|
||||
void clearBG();
|
||||
void drawCells();
|
||||
void drawGrid(std::vector<std::vector<int> > grid);
|
||||
void drawCell(int x, int y, int value);
|
||||
sf::Color getCellColor(int value);
|
||||
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue