X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=dust.c;h=b336696035da9c1cbd7248114d023487d600e551;hp=691649d412b821b42f83766a3af059a361b6a4c3;hb=a726e74233c877dab3aca50e5b31e7652035ae30;hpb=841f94c4182f8dff0253db9bae4922c3c9039a5f diff --git a/dust.c b/dust.c index 691649d..b336696 100644 --- a/dust.c +++ b/dust.c @@ -30,12 +30,14 @@ void move_dust(void) { int i; + float xscroll = screendx * t_frame; + float yscroll = screendy * t_frame; for(i=0; i= XSIZE) motes[i].x -= XSIZE; + if(motes[i].x >= XSIZE) motes[i].x -= XSIZE; else if(motes[i].x < 0) motes[i].x += XSIZE; - if(motes[i].y > YSIZE) motes[i].y -= YSIZE; + if(motes[i].y >= YSIZE) motes[i].y -= YSIZE; else if(motes[i].y < 0) motes[i].y += YSIZE; } }