aboutsummaryrefslogtreecommitdiff
path: root/src/test/ParticleTest.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-14 19:59:32 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-14 19:59:32 +0100
commit22476a51e00089f8c7b810937250ff4d7a14329e (patch)
tree8840f9f2adb746f05db0bd9ceb4a8464161219b6 /src/test/ParticleTest.cpp
parent76d3108c44d6920c8f6f245c80c10a15267f1d3b (diff)
updated test and game.cpp
Diffstat (limited to 'src/test/ParticleTest.cpp')
-rw-r--r--src/test/ParticleTest.cpp4
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;