aboutsummaryrefslogtreecommitdiff
path: root/src/example/rendering_particle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/example/rendering_particle.cpp')
-rw-r--r--src/example/rendering_particle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp
index 9cf25d7..07cfae2 100644
--- a/src/example/rendering_particle.cpp
+++ b/src/example/rendering_particle.cpp
@@ -39,6 +39,8 @@ public:
.angle_offset = 0,
.position_offset = {0, 1},
});
+ auto & emitter
+ = game_object.add_component<ParticleEmitter>(test_sprite, ParticleEmitter::Data{});
Sprite & test_sprite1
= game_object.add_component<Sprite>(img, Sprite::Data{