diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-10-20 20:16:21 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-10-20 20:16:21 -0500 |
commit | 17b4275fae1f6c5642156c73784622772d235c42 (patch) | |
tree | 73028c2a8193b2fd983e4a2e04dd2dcc35cff960 /src/entities.cpp | |
parent | 7a4bc1d9e6b73471cb2e20d2ab0611a507979f30 (diff) |
playersystem, move cat
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index d07de4b..1426eaf 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -1,6 +1,7 @@ #include <entities.hpp> #include <engine.hpp> +#include <player.hpp> #include <components.hpp> void entityxTest(void) @@ -8,7 +9,7 @@ void entityxTest(void) entityx::Entity e = game::entities.create(); e.assign<Position>(100.0f, 100.0f); e.assign<Direction>(0.0f, 0.0f); - + e = game::entities.create(); e.assign<Position>(0.0f, 100.0f); e.assign<Direction>(-0.01f, 0.0f); @@ -18,4 +19,6 @@ void entityxTest(void) vec2(0, 0), vec2(19, 15)), vec2(0, 0)); + + game::engine.getSystem<PlayerSystem>()->setPlayer(e); } |