#ifndef _EXPLOSION_H_ #define _EXPLOSION_H_ #include #include // Maximum number of particles in explosion const int MAX_PART = 512; // Particle struct used in the explosion struct Particle { int x, y, vx, vy; int life; int color; }; Particle particles[MAX_PART]; void create_explosion(int x, int y) { } void update_particles() { } void reset_particles() { for(int index = 0; index < MAX_PART; index++) { if(particles[index].life <= 0) continue; } } #endif /* _EXPLOSION_H_ */