aboutsummaryrefslogtreecommitdiff
path: root/src/test/ParticleTest.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-03 11:33:48 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-03 11:33:48 +0100
commitd1a31a3cafc9aadb047509f5cd8b2befa212add8 (patch)
treeaf43d7e3bd55818565fb253064d3f35a44786a68 /src/test/ParticleTest.cpp
parentc396ae5f78222a7c3547ae5e2ce719ae143acb66 (diff)
parentcc821016c8ddce45a1e3f192415f58be237b8a1e (diff)
Merge branch 'jaro/collision-system' into wouter/exampleGame
Diffstat (limited to 'src/test/ParticleTest.cpp')
-rw-r--r--src/test/ParticleTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ParticleTest.cpp b/src/test/ParticleTest.cpp
index 8b81e74..976f9a1 100644
--- a/src/test/ParticleTest.cpp
+++ b/src/test/ParticleTest.cpp
@@ -1,4 +1,4 @@
-#include "api/Vector2.h"
+#include "api/Texture.h"
#include <crepe/ComponentManager.h>
#include <crepe/Particle.h>
#include <crepe/api/Config.h>
@@ -28,9 +28,9 @@ public:
GameObject game_object = mgr.new_object("", "", vec2{0, 0}, 0, 0);
Color color(0, 0, 0, 0);
+ auto s1 = Texture("asset/texture/img.png");
Sprite & test_sprite = game_object.add_component<Sprite>(
- make_shared<Texture>("asset/texture/img.png"), color,
- FlipSettings{true, true});
+ s1, color, Sprite::FlipSettings{true, true}, 1, 1, 100);
game_object.add_component<ParticleEmitter>(ParticleEmitter::Data{
.position = {0, 0},