diff options
Diffstat (limited to 'src/example/GameScene.cpp')
-rw-r--r-- | src/example/GameScene.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/example/GameScene.cpp b/src/example/GameScene.cpp index 5ab4be0..5f252e6 100644 --- a/src/example/GameScene.cpp +++ b/src/example/GameScene.cpp @@ -1,6 +1,7 @@ #include "GameScene.h" #include "Background.h" #include "Player.h" +#include "api/ParticleEmitter.h" #include <cmath> #include <crepe/api/Animator.h> @@ -67,6 +68,12 @@ public: frag_sprite.active = true; } + RefVector<ParticleEmitter> smoke_emitters + = this->get_components_by_name<ParticleEmitter>("smoke_particles"); + for (ParticleEmitter & emitter : smoke_emitters) { + emitter.active = true; + } + this->created_hole = true; } |