#ifndef __particle_h__ #define __particle_h__ #include "object.h" typedef struct Particle { float x, y; float dx, dy; int age; int size; } Particle; typedef struct ParticleBurst { Particle* particles; /* Array of particles */ int max; /* Size of array */ float angle, width; /* Size and direction of cone */ float vel; /* Velocity of new particles */ int rate; /* Number of new particles per frame */ } ParticleBurst; extern Object* make_particleburst(World* world, int x, int y, int max, float angle, float width, float vel, int rate); #endif