aboutsummaryrefslogtreecommitdiff
path: root/src
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
parent76d3108c44d6920c8f6f245c80c10a15267f1d3b (diff)
updated test and game.cpp
Diffstat (limited to 'src')
-rw-r--r--src/example/game.cpp2
-rw-r--r--src/test/ParticleTest.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/example/game.cpp b/src/example/game.cpp
index 7c9a227..ed6afac 100644
--- a/src/example/game.cpp
+++ b/src/example/game.cpp
@@ -269,7 +269,7 @@ public:
});
auto & test
= particle.add_component<ParticleEmitter>(particle_image, ParticleEmitter::Data{
- .position = {0, 0},
+ .offset = {0, 0},
.max_particles = 256,
.emission_rate = 50,
.min_speed = 10,
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;