diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-15 09:48:04 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-15 09:48:04 +0100 |
commit | ed1403aea4412bd479244eae8e2940190e71cd28 (patch) | |
tree | a436d8ff5cbf6bf8d6f72ffe61c1a777285619da /src/example | |
parent | e25aa67c4263b3a940ae9e92f2fcd31a4486f407 (diff) |
example
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/rendering_particle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp index dd08354..33013ef 100644 --- a/src/example/rendering_particle.cpp +++ b/src/example/rendering_particle.cpp @@ -22,14 +22,14 @@ using namespace std; int main(int argc, char * argv[]) { GameObject game_object(0, "", "", Vector2{100, 100}, 0, 0.1); - Color color(0, 0, 0, 0); + Color color(255, 255, 255, 255); Sprite test_sprite = game_object.add_component<Sprite>( make_shared<Texture>("../asset/texture/img.png"), color, FlipSettings{false, false}); game_object.add_component<ParticleEmitter>(ParticleEmitter::Data{ .position = {0, 0}, .max_particles = 10, - .emission_rate = 0.5, + .emission_rate = 0.1, .min_speed = 6, .max_speed = 20, .min_angle = -20, |