particle.h 452 B

123456789101112131415161718192021
  1. #ifndef PARTICLE_H
  2. #define PARTICLE_H
  3. #include "point.h"
  4. #include "scientist.h"
  5. #include "barry.h"
  6. #define PARTICLES_MAX 50
  7. #define PARTICLE_VELOCITY 2
  8. typedef struct {
  9. POINT point;
  10. } PARTICLE;
  11. void particle_tick(PARTICLE* const particles, SCIENTIST* const scientists);
  12. void spawn_random_particles(PARTICLE* const particles, BARRY* const barry);
  13. void draw_particles(const PARTICLE* particles, Canvas* const canvas);
  14. #endif // PARTICLE_H