-init_space_dots() {
- int i,b;
- for(i = 0; i<MAXSPACEDOTS; i++) {
- sdot[i].x = rnd()*(XSIZE-5);
- sdot[i].y = rnd()*(YSIZE-5);
- sdot[i].z = MAXDUSTDEPTH*sqrt(rnd());
- b = (MAXDUSTDEPTH - sdot[i].z) * 255.0 / MAXDUSTDEPTH;
- sdot[i].color = SDL_MapRGB(surf_screen->format, b, b, b);
- }
-}
-
-void
-make_bang_dots(int xbang, int ybang, int dx, int dy, SDL_Surface *s, int power) {
-
- // TODO - stop generating dots after a certain amount of time has passed, to cope with slower CPUs.
- // TODO - generate and display dots in a circular buffer
-
+new_bang_dots(int xbang, int ybang, int dx, int dy, SDL_Surface *s, int power)
+{