diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-06 19:26:27 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-06 19:26:27 +0100 |
commit | e8d9e38b4c265e0efde32c38d01b511cb572a34d (patch) | |
tree | 0af9b8f5e7c9e59de2e3c9ebc175ce31e9a86c20 /src/test/ParticleTest.cpp | |
parent | cfd578dd0b7d5894ff0b0a0796d85cd5e9ae6e56 (diff) | |
parent | f3adf300c5ba9b382f74e5b704501fd047399062 (diff) |
Merge branch 'niels/decoupling_pixel_and_pos' of github.com:lonkaars/crepe
Diffstat (limited to 'src/test/ParticleTest.cpp')
-rw-r--r-- | src/test/ParticleTest.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/ParticleTest.cpp b/src/test/ParticleTest.cpp index a659fe5..1409c4f 100644 --- a/src/test/ParticleTest.cpp +++ b/src/test/ParticleTest.cpp @@ -32,7 +32,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}, |