aboutsummaryrefslogtreecommitdiff
path: root/src/test/ParticleTest.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-02 21:17:12 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-02 21:17:12 +0100
commit9f243b9a7a19cc626e787cd71c83e3c3225018b9 (patch)
tree3ab8ff5316147c1e59601d2fd754f34390ae9515 /src/test/ParticleTest.cpp
parent900cfa9f31de40308b9ea3d0c73372d44f11094c (diff)
made the test work with the adjustments
Diffstat (limited to 'src/test/ParticleTest.cpp')
-rw-r--r--src/test/ParticleTest.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/ParticleTest.cpp b/src/test/ParticleTest.cpp
index 976f9a1..3cfc466 100644
--- a/src/test/ParticleTest.cpp
+++ b/src/test/ParticleTest.cpp
@@ -30,7 +30,11 @@ public:
Color color(0, 0, 0, 0);
auto s1 = Texture("asset/texture/img.png");
Sprite & test_sprite = game_object.add_component<Sprite>(
- s1, color, Sprite::FlipSettings{true, true}, 1, 1, 100);
+ s1, Sprite::Data{
+ .color = color,
+ .flip = Sprite::FlipSettings{true, true},
+ .size = {10, 10},
+ });
game_object.add_component<ParticleEmitter>(ParticleEmitter::Data{
.position = {0, 0},