diff options
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/AITest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/example/AITest.cpp b/src/example/AITest.cpp index 3998ff4..1c4633f 100644 --- a/src/example/AITest.cpp +++ b/src/example/AITest.cpp @@ -1,6 +1,7 @@ #include <SDL2/SDL_timer.h> #include <chrono> #include <crepe/ComponentManager.h> +#include <crepe/api/AI.h> #include <crepe/api/Camera.h> #include <crepe/api/Color.h> #include <crepe/api/GameObject.h> @@ -8,7 +9,6 @@ #include <crepe/api/Scene.h> #include <crepe/api/Sprite.h> #include <crepe/api/Texture.h> -#include <crepe/system/RenderSystem.h> using namespace crepe; using namespace std; @@ -24,6 +24,7 @@ public: Texture img = Texture("asset/texture/test_ap43.png"); game_object1.add_component<Sprite>(img, Color::MAGENTA, Sprite::FlipSettings{false, false}, 1, 1, 195); + game_object1.add_component<AI>(1, 1, 1); game_object2.add_component<Camera>(Color::WHITE, ivec2{1080, 720}, vec2{1036, 780}, 1.0f); |