diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-12-17 15:22:18 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-12-17 15:22:18 +0100 |
commit | fb76ba279cc2500f2ed385c3463caed003d43e00 (patch) | |
tree | 27214fe26a2843bf58d5ca7fd6b4dd2dd1028aa0 /src/example/GameScene.cpp | |
parent | 473f807b1ec0fc67f40c65b310e132e4b83a76a3 (diff) |
Added particle emitter
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; } |