aboutsummaryrefslogtreecommitdiff
path: root/src/example/scene_manager.cpp
diff options
context:
space:
mode:
authorjaroWMR <jarorutjes07@gmail.com>2024-11-07 18:39:56 +0100
committerjaroWMR <jarorutjes07@gmail.com>2024-11-07 18:39:56 +0100
commite2f3ace383b43cc3f140629e577b97c6f69c9856 (patch)
tree690eb146e11a4bc134840ec82bfbea4805daba61 /src/example/scene_manager.cpp
parent156906dca0b84d3fd3c889e1bcda12308b8fe793 (diff)
added physics system
Diffstat (limited to 'src/example/scene_manager.cpp')
-rw-r--r--src/example/scene_manager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/example/scene_manager.cpp b/src/example/scene_manager.cpp
index efbf2c2..1780c81 100644
--- a/src/example/scene_manager.cpp
+++ b/src/example/scene_manager.cpp
@@ -3,7 +3,7 @@
#include <crepe/ComponentManager.h>
#include <crepe/api/GameObject.h>
#include <crepe/api/Metadata.h>
-#include <crepe/api/Point.h>
+#include <crepe/api/Vector2.h>
#include <crepe/api/Scene.h>
#include <crepe/api/SceneManager.h>
@@ -15,9 +15,9 @@ public:
ConcreteScene1(string name) : Scene(name) {}
void load_scene() {
- GameObject object1(0, "scene_1", "tag_scene_1", Point{0, 0}, 0, 1);
- GameObject object2(1, "scene_1", "tag_scene_1", Point{1, 0}, 0, 1);
- GameObject object3(2, "scene_1", "tag_scene_1", Point{2, 0}, 0, 1);
+ GameObject object1(0, "scene_1", "tag_scene_1", Vector2{0, 0}, 0, 1);
+ GameObject object2(1, "scene_1", "tag_scene_1", Vector2{1, 0}, 0, 1);
+ GameObject object3(2, "scene_1", "tag_scene_1", Vector2{2, 0}, 0, 1);
}
};
@@ -26,10 +26,10 @@ public:
ConcreteScene2(string name) : Scene(name) {}
void load_scene() {
- GameObject object1(0, "scene_2", "tag_scene_2", Point{0, 0}, 0, 1);
- GameObject object2(1, "scene_2", "tag_scene_2", Point{0, 1}, 0, 1);
- GameObject object3(2, "scene_2", "tag_scene_2", Point{0, 2}, 0, 1);
- GameObject object4(3, "scene_2", "tag_scene_2", Point{0, 3}, 0, 1);
+ GameObject object1(0, "scene_2", "tag_scene_2", Vector2{0, 0}, 0, 1);
+ GameObject object2(1, "scene_2", "tag_scene_2", Vector2{0, 1}, 0, 1);
+ GameObject object3(2, "scene_2", "tag_scene_2", Vector2{0, 2}, 0, 1);
+ GameObject object4(3, "scene_2", "tag_scene_2", Vector2{0, 3}, 0, 1);
}
};