From fb76ba279cc2500f2ed385c3463caed003d43e00 Mon Sep 17 00:00:00 2001 From: max-001 Date: Tue, 17 Dec 2024 15:22:18 +0100 Subject: Added particle emitter --- src/example/GameScene.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/example/GameScene.cpp') 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 #include @@ -67,6 +68,12 @@ public: frag_sprite.active = true; } + RefVector smoke_emitters + = this->get_components_by_name("smoke_particles"); + for (ParticleEmitter & emitter : smoke_emitters) { + emitter.active = true; + } + this->created_hole = true; } -- cgit v1.2.3