diff options
Diffstat (limited to 'include/particle.hpp')
-rw-r--r-- | include/particle.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/particle.hpp b/include/particle.hpp index 92ab7e4..55228c0 100644 --- a/include/particle.hpp +++ b/include/particle.hpp @@ -9,22 +9,22 @@ #include <entityx/entityx.h> enum class ParticleType : char { - Drop, - Confetti, - SmallBlast, - SmallPoof + Drop = 1, + Confetti = 2, + SmallBlast = 4, + SmallPoof = 8 }; struct Particle { - vec2 location; + int timeLeft; vec2 velocity; + vec2 location; ParticleType type; - int timeLeft; vec2 color; // assets/colorIndex.png Particle(vec2 p, ParticleType t, int tl, vec2 c) - : location(p), type(t), timeLeft(tl), color(c) {} -};// __attribute__ ((packed)); + : timeLeft(tl), location(p), type(t), color(c) {} +}; class ParticleSystem : public entityx::System<ParticleSystem> { private: |