diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-10-09 19:24:08 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-10-09 19:24:08 +0200 |
commit | 8d6cb03cd83b9f6576909058601af54f16c8acfe (patch) | |
tree | 1aae264859680e888c5801f279b638cefa137fb9 /src/main.cpp | |
parent | 9e7d64d052eabcf40d85c3e903aaba44903a380a (diff) |
Refactoring and basic map generation.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 9 |
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(); } |