diff options
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, |