diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-11-08 21:37:28 +0000 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-11-08 21:37:28 +0000 |
commit | 4e6f10f2d6ed593a21b985ccabe305a9cd6212cc (patch) | |
tree | f080f8cb689a976ecba10ebb280a196999a51deb /src/example | |
parent | d69adb5666fd6f73edbc6d410afcdf23c24e7c6b (diff) |
fixed build
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/example/particles.cpp | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/example/CMakeLists.txt b/src/example/CMakeLists.txt index 36f9d4d..722ffea 100644 --- a/src/example/CMakeLists.txt +++ b/src/example/CMakeLists.txt @@ -28,4 +28,5 @@ add_example(proxy) add_example(db) add_example(ecs) add_example(scene_manager) +add_example(particles) diff --git a/src/example/particles.cpp b/src/example/particles.cpp index a56ec5c..bcff48f 100644 --- a/src/example/particles.cpp +++ b/src/example/particles.cpp @@ -3,7 +3,6 @@ #include <crepe/system/CollisionSystem.h> #include <crepe/api/AssetManager.h> #include <crepe/system/PhysicsSystem.h> -#include <crepe/api/loopManager.h> #include <crepe/Component.h> #include <crepe/api/GameObject.h> @@ -32,11 +31,11 @@ int main(int argc, char * argv[]) { .max_angle = 0, .begin_lifespan = 0, .end_lifespan = 0, - .force_over_time = 0, + .force_over_time = Vector2{0,0}, .boundary{ .boundary_width = 0, .boundary_height = 0, - .boundary_offset = {0,0}, + .boundary_offset = Vector2{0,0}, .reset_on_exit = false, }, .sprite = nullptr, |