diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2017-04-27 21:33:13 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2017-04-27 21:33:13 -0400 |
commit | 2de1af94cfa794ae5dd7913c797d673b58289949 (patch) | |
tree | 3acb4e822943efb714ff04d4e88307127e34f52e /src/engine.cpp | |
parent | 40f2ab396ccca1a12cc74d18c9758da5bc2f1afc (diff) | |
parent | 00de7a4b0aa48c3cb42c45e0f203902ca034b94c (diff) |
Updated sprites
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); } |