aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-12-04 17:27:51 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-12-04 17:27:51 +0100
commit121387ba92a23d6f17b36331d25757abc899f7d2 (patch)
tree7d335c9b0ae3449733ffe1b05ceda8a26a6706af /src/example
parente303bd4c54b0edbcd1819a47a5d8aaef88211a09 (diff)
Implemeted seek behavior
Diffstat (limited to 'src/example')
-rw-r--r--src/example/AITest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/example/AITest.cpp b/src/example/AITest.cpp
index 1c4633f..341e1de 100644
--- a/src/example/AITest.cpp
+++ b/src/example/AITest.cpp
@@ -18,13 +18,13 @@ public:
void load_scene() override {
ComponentManager & mgr = this->component_manager;
- GameObject game_object1 = mgr.new_object("", "", vec2{0, 0}, 0, 1);
+ GameObject game_object1 = mgr.new_object("", "", vec2{250, 250}, 0, 1);
GameObject game_object2 = mgr.new_object("", "", vec2{0, 0}, 0, 1);
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_object1.add_component<AI>(1, 200, 200).seek_on();
game_object2.add_component<Camera>(Color::WHITE, ivec2{1080, 720}, vec2{1036, 780},
1.0f);