diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2017-04-27 17:40:12 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2017-04-27 17:40:12 -0400 |
commit | a33b3d4ffc1defda5bdcd3348036ce48ef5b0085 (patch) | |
tree | 87070680ba9c8a02a2c9a6184f22e5cb0f466b55 /src/engine.cpp | |
parent | 00f879600bcea8f1ec1775c941041ee6346a60ba (diff) |
modernized ui
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 640356e..dc7aa77 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -1,6 +1,7 @@ #include <engine.hpp> #include <config.hpp> +#include <font.hpp> #include <world.hpp> #include <window.hpp> #include <ui.hpp> @@ -38,8 +39,17 @@ void Engine::init(void) { systems.add<WeatherSystem>(); systems.add<AttackSystem>(); + systems.add<UISystem>(); + systems.configure(); + // init ui + + FontSystem::init(game::config::fontFamily); + FontSystem::setFontSize(16); + FontSystem::setFontColor(1, 1, 1); + FontSystem::setFontZ(-6.0f); + ui::initSounds(); ui::menu::init(); game::config::update(); @@ -57,6 +67,7 @@ void Engine::update(entityx::TimeDelta dt) systems.update<WeatherSystem>(dt); systems.update<ParticleSystem>(dt); systems.update<AttackSystem>(dt); + //systems.update<UISystem>(dt); } |