aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/ParticleEmitter.hpp
diff options
context:
space:
mode:
authorjaroWMR <jarorutjes07@gmail.com>2024-10-07 16:39:26 +0200
committerjaroWMR <jarorutjes07@gmail.com>2024-10-07 16:39:26 +0200
commit5cf5cf64d6f9597849ed5558da4f1bc201165fed (patch)
treeb0b02e8b71c5e8e5afba4212daa999c5cc04bd26 /src/crepe/ParticleEmitter.hpp
parent096e0d0a7199ec9a4059fd5ef8a06a3cf8fcae83 (diff)
updated system
Diffstat (limited to 'src/crepe/ParticleEmitter.hpp')
-rw-r--r--src/crepe/ParticleEmitter.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crepe/ParticleEmitter.hpp b/src/crepe/ParticleEmitter.hpp
index 6826531..f647c27 100644
--- a/src/crepe/ParticleEmitter.hpp
+++ b/src/crepe/ParticleEmitter.hpp
@@ -5,7 +5,7 @@
class ParticleEmitter {
public:
- ParticleEmitter(unsigned int maxParticles, unsigned int emissionRate, unsigned int speed, unsigned int speedOffset, unsigned int angle, unsigned int angleOffset);
+ ParticleEmitter(unsigned int maxParticles, unsigned int emissionRate, unsigned int speed, unsigned int speedOffset, unsigned int angle, unsigned int angleOffset,float m_beginLifespan,float m_endLifespan);
struct Position { //struct to hold position
float x;
float y;
@@ -18,6 +18,8 @@ public:
unsigned int m_speedOffset; //offset for random speed variation
unsigned int m_minAngle; //min angle of particle emission
unsigned int m_maxAngle; //max angle of particle emission
+ float m_beginLifespan; //begin Lifespan of particle (only visual)
+ float m_endLifespan; //begin Lifespan of particle
std::vector<Particle> particles; //collection of particles
};