diff options
| author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-28 08:51:20 +0100 | 
|---|---|---|
| committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-28 08:51:20 +0100 | 
| commit | 5fa57ab2d8f809b8cb6bd72f54567a01f3e63b95 (patch) | |
| tree | d436ae304ce590b3778b6c8f77ada3596c2a8887 /src/test/ParticleTest.cpp | |
| parent | 87c147dde61e2534d4e66c159a711b0f1ab68b8b (diff) | |
making test work again
Diffstat (limited to 'src/test/ParticleTest.cpp')
| -rw-r--r-- | src/test/ParticleTest.cpp | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/ParticleTest.cpp b/src/test/ParticleTest.cpp index 8b81e74..ea3652a 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,10 @@ 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, +				FlipSettings{true, true}, 1,1,100);  			game_object.add_component<ParticleEmitter>(ParticleEmitter::Data{  				.position = {0, 0},  |