#include <math.h>
#include "math/random_generator.hpp"
-#include "supertux/main.hpp"
+#include "supertux/globals.hpp"
#include "video/drawing_context.hpp"
-ParticleSystem::ParticleSystem(float max_particle_size) :
- max_particle_size(max_particle_size),
+ParticleSystem::ParticleSystem(float max_particle_size_) :
+ max_particle_size(max_particle_size_),
z_pos(),
particles(),
virtual_width(),
//if(pos.x > virtual_width) pos.x -= virtual_width;
//if(pos.y > virtual_height) pos.y -= virtual_height;
- context.draw_surface(particle->texture, pos, z_pos);
+ context.draw_surface(particle->texture, pos, particle->angle, Color(1.0f, 1.0f, 1.0f), Blend(), z_pos);
}
context.pop_transform();