diff options
author | jaroWMR <jarorutjes07@gmail.com> | 2024-10-10 09:30:49 +0200 |
---|---|---|
committer | jaroWMR <jarorutjes07@gmail.com> | 2024-10-10 09:30:49 +0200 |
commit | 016070d47f2fff8cfdd49cc0bdf65c14ef922c94 (patch) | |
tree | 398daf00fcba5e4edc7dfc5807d55f940af4a58c /src/crepe/ParticleEmitter.cpp | |
parent | d001c4ba95a72f13c942f1a24eb98fe1584d93a4 (diff) |
renamed particel to particle and example uses ecs for poc
Diffstat (limited to 'src/crepe/ParticleEmitter.cpp')
-rw-r--r-- | src/crepe/ParticleEmitter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crepe/ParticleEmitter.cpp b/src/crepe/ParticleEmitter.cpp index 9ae5e76..30cba7c 100644 --- a/src/crepe/ParticleEmitter.cpp +++ b/src/crepe/ParticleEmitter.cpp @@ -11,6 +11,8 @@ ParticleEmitter::ParticleEmitter(uint32_t maxParticles, uint32_t emissionRate, u std::cout << "Create emitter" << std::endl; m_minAngle = (360 + angle - (angleOffset % 360)) % 360; // calculate minAngle m_maxAngle = (360 + angle + (angleOffset % 360)) % 360; // calculate maxAngle + m_position.x = 400; + m_position.y = 400; for (size_t i = 0; i < m_maxParticles; i++) { this->particles.emplace_back(); |