Stuff
public cpp v1 · immutable#ifndef _EXPLOSION_H_#define _EXPLOSION_H_#include <allegro.h>#include <cmath>// Maximum number of particles in explosionconst int MAX_PART = 512;// Particle struct used in the explosionstruct 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_ */