blob: b63b610896361aac6627db6ed409cf0fddfa9b4a (
plain)
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
|
#include "common.hpp"
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 600), "Minitrem");
game::state_t game;
interface::state_t interface(&window, &game);
window.setVerticalSyncEnabled(true);
game.start();
while (1) {
game.tick();
interface.tick();
if (!window.isOpen())
break;
window.clear();
game.render(&window);
interface.render();
window.display();
}
return 0;
}
|