diff options
author | jaroWMR <jarorutjes07@gmail.com> | 2024-11-07 18:39:56 +0100 |
---|---|---|
committer | jaroWMR <jarorutjes07@gmail.com> | 2024-11-07 18:39:56 +0100 |
commit | e2f3ace383b43cc3f140629e577b97c6f69c9856 (patch) | |
tree | 690eb146e11a4bc134840ec82bfbea4805daba61 /src/example/rendering.cpp | |
parent | 156906dca0b84d3fd3c889e1bcda12308b8fe793 (diff) |
added physics system
Diffstat (limited to 'src/example/rendering.cpp')
-rw-r--r-- | src/example/rendering.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/example/rendering.cpp b/src/example/rendering.cpp index 3fe43d6..e1ff9da 100644 --- a/src/example/rendering.cpp +++ b/src/example/rendering.cpp @@ -5,7 +5,7 @@ #include <crepe/api/AssetManager.h> #include <crepe/api/Color.h> -#include <crepe/api/Point.h> +#include <crepe/api/Vector2.h> #include <crepe/api/Sprite.h> #include <crepe/api/Texture.h> #include <crepe/api/Transform.h> @@ -19,9 +19,9 @@ using namespace crepe; int main() { dbg_trace(); - auto obj = GameObject(0, "name", "tag", Point{0, 0}, 1, 1); - auto obj1 = GameObject(1, "name", "tag", Point{500, 0}, 1, 0.1); - auto obj2 = GameObject(2, "name", "tag", Point{800, 0}, 1, 0.1); + auto obj = GameObject(0, "name", "tag", Vector2{0, 0}, 1, 1); + auto obj1 = GameObject(1, "name", "tag", Vector2{500, 0}, 1, 0.1); + auto obj2 = GameObject(2, "name", "tag", Vector2{800, 0}, 1, 0.1); auto & mgr = AssetManager::get_instance(); // Normal adding components |