diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-14 19:59:32 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-14 19:59:32 +0100 |
commit | 22476a51e00089f8c7b810937250ff4d7a14329e (patch) | |
tree | 8840f9f2adb746f05db0bd9ceb4a8464161219b6 /src/test/ParticleTest.cpp | |
parent | 76d3108c44d6920c8f6f245c80c10a15267f1d3b (diff) |
updated test and game.cpp
Diffstat (limited to 'src/test/ParticleTest.cpp')
-rw-r--r-- | src/test/ParticleTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ParticleTest.cpp b/src/test/ParticleTest.cpp index 8ffb140..9263e00 100644 --- a/src/test/ParticleTest.cpp +++ b/src/test/ParticleTest.cpp @@ -44,7 +44,7 @@ public: game_object.add_component<ParticleEmitter>(test_sprite, ParticleEmitter::Data{ - .position = {0, 0}, + .offset = {0, 0}, .max_particles = 100, .emission_rate = 0, .min_speed = 0, @@ -70,7 +70,7 @@ public: std::vector<std::reference_wrapper<ParticleEmitter>> rigidbodies = mgr.get_components_by_id<ParticleEmitter>(0); ParticleEmitter & emitter = rigidbodies.front().get(); - emitter.data.position = {0, 0}; + emitter.data.offset = {0, 0}; emitter.data.emission_rate = 0; emitter.data.min_speed = 0; emitter.data.max_speed = 0; |