X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=rocks.c;h=e47bc44c044f71984277808ff4a412e8c153d76a;hp=607431dada316ced97c294d36e27884985f77e97;hb=4461dfec6f8f09b43ec9719523d14978d82bd124;hpb=0e26db03c5aca3622a007b607368b250e40b7f2c diff --git a/rocks.c b/rocks.c index 607431d..e47bc44 100644 --- a/rocks.c +++ b/rocks.c @@ -25,8 +25,6 @@ struct shape rock_shapes[NROCKS]; // timers for rock generation. float rtimers[4]; -uint32_t rcnt; - uint32_t nrocks; uint32_t nrocks_timer; uint32_t nrocks_inc_ticks = 2*60*1000/(F_ROCKS-I_ROCKS); @@ -66,13 +64,12 @@ reset_rocks(void) for(i = 0; iactive = 1; - rcnt++; } } } @@ -228,12 +220,9 @@ move_rocks(void) if(rock[i].x < -rock[i].image->w || rock[i].x >= XSIZE || rock[i].y < -rock[i].image->h || rock[i].y >= YSIZE) { rock[i].active = 0; - rcnt--; } } } - // if(rcnt < nrocks) printf("-%d.\n", nrocks-rcnt); - // else printf("%d.\n", rcnt-nrocks); } void