-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
40 lines (35 loc) · 693 Bytes
/
main.cpp
File metadata and controls
40 lines (35 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "head.h"
sf::RenderWindow windows(sf::VideoMode(WIDTH, HEIGHT), "Brick Break", sf::Style::Titlebar);
State States = Start;
sf::Font font;
RankView rank("data/rank.txt", WIDTH, HEIGHT, 150, 100, 0.7, font, 30, sf::Color::Yellow , windows);
int main()
{
if (!font.loadFromFile("data/FunSized.ttf"))
{
std::cout << "Nie znaleziono czcionek!!!!";
return -1;
}
rank.loadRankFromFile();
rank.sortRank();
rank.addToRank(152, "Adamigos");
while (States != End)
{
switch (States)
{
case End:
break;
case Start:
start_screen();
break;
case Play:
play_screen();
break;
case Top:
top_screen();
break;
}
}
//rank.saveRankToFile();
return 0;
}