diff options
author | tcsullivan <tullivan99@gmail.com> | 2019-09-01 12:56:49 -0400 |
---|---|---|
committer | tcsullivan <tullivan99@gmail.com> | 2019-09-01 12:56:49 -0400 |
commit | e7fee98e0ee15665b40b383baf925356bb81f20d (patch) | |
tree | 1542a5d0af9fb33d4477d62f07f2c9b8c037d49c /src/engine.cpp | |
parent | 86e07cc6860b01c1569645e858ea8e9235d5194e (diff) |
added player system; player moves left and right
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 5 |
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; } |