From a33b3d4ffc1defda5bdcd3348036ce48ef5b0085 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan <tullivan99@gmail.com> Date: Thu, 27 Apr 2017 17:40:12 -0400 Subject: modernized ui --- src/engine.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/engine.cpp') 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); } -- cgit v1.2.3