summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 1f69582..d1afc2f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2,19 +2,20 @@
int main()
{
- sf::RenderWindow window(sf::VideoMode(800, 600), "SFML");
- world::world_t world;
- interface::state_t interface(&window, &world);
+ sf::RenderWindow window(sf::VideoMode(800, 600), "Minitrem");
+ game::state_t game;
+ interface::state_t interface(&window, &game);
window.setVerticalSyncEnabled(true);
while (1) {
+ game.tick();
interface.tick();
if (!window.isOpen())
break;
window.clear();
- world.render(&window);
+ game.render(&window);
interface.render();
window.display();
}