From 8d6cb03cd83b9f6576909058601af54f16c8acfe Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 9 Oct 2017 19:24:08 +0200 Subject: Refactoring and basic map generation. --- src/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') 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(); } -- cgit