aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine.cpp
diff options
context:
space:
mode:
authortcsullivan <tullivan99@gmail.com>2019-09-01 12:56:49 -0400
committertcsullivan <tullivan99@gmail.com>2019-09-01 12:56:49 -0400
commite7fee98e0ee15665b40b383baf925356bb81f20d (patch)
tree1542a5d0af9fb33d4477d62f07f2c9b8c037d49c /src/engine.cpp
parent86e07cc6860b01c1569645e858ea8e9235d5194e (diff)
added player system; player moves left and right
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 99c457b..26dcd0a 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -22,6 +22,7 @@
#include "engine.hpp"
#include "gamerun.hpp"
#include "input.hpp"
+#include "player.hpp"
#include "script.hpp"
#include "render.hpp"
@@ -33,10 +34,14 @@ int Engine::init(void)
{
systems.add<GameRunSystem>();
systems.add<InputSystem>();
+ systems.add<PlayerSystem>();
systems.add<RenderSystem>();
systems.add<ScriptSystem>();
systems.configure();
+
+ systems.system<ScriptSystem>()->init();
+
return 0;
}