#include #include #include "config.h" #include "globals.h" #include "dust.h" #include "float.h" #include "mt.h" struct dust_mote { float x,y,z; Uint16 color; }; struct dust_mote motes[N_DUST_MOTES]; void init_dust(void) { int i, b; for(i=0; iformat, b, b, b); } } void move_dust(void) { int i; float xscroll = screendx * t_frame; float yscroll = screendy * t_frame; for(i=0; ipixels; for(i=0; ipitch/2*(int)motes[i].y + (int)motes[i].x] = motes[i].color; } }