{
virtual_width = SCREEN_WIDTH + max_particle_size * 2;
virtual_height = SCREEN_HEIGHT + max_particle_size *2;
{
virtual_width = SCREEN_WIDTH + max_particle_size * 2;
virtual_height = SCREEN_HEIGHT + max_particle_size *2;
particle->pos.y += particle->speed * elapsed_time;
particle->pos.x += particle->wobble * elapsed_time /* * particle->speed * 0.125*/;
particle->pos.y += particle->speed * elapsed_time;
particle->pos.x += particle->wobble * elapsed_time /* * particle->speed * 0.125*/;
anchor_delta = (particle->anchorx - particle->pos.x);
particle->wobble += (4 * anchor_delta * 0.05) + systemRandom.randf(-0.5, 0.5);
anchor_delta = (particle->anchorx - particle->pos.x);
particle->wobble += (4 * anchor_delta * 0.05) + systemRandom.randf(-0.5, 0.5);
particle->pos.y = systemRandom.randf(SCREEN_HEIGHT);
int size = systemRandom.rand(2);
particle->texture = ghosts[size];
particle->pos.y = systemRandom.randf(SCREEN_HEIGHT);
int size = systemRandom.rand(2);
particle->texture = ghosts[size];