+ // SCROLLING
+ if(state == GAMEPLAY) {
+ tmp = shipy - (YSIZE / 2);
+ tmp += shipdy * 25;
+ tmp /= -25;
+ tmp = ((screendy * (gamerate - 12)) + (tmp * gamerate)) / 12;
+ screendy = -tmp;
+ tmp = shipx - (XSIZE / 2);
+ tmp += shipdx * 25;
+ tmp /= -25;
+ tmp = ((screendx * (gamerate - 12)) + (tmp * gamerate)) / 12;
+ screendx = -tmp;
+ } else if(state != DEAD_PAUSE) screendx = 7.5;
+
+ xscroll = screendx * gamerate;
+ yscroll = screendy * gamerate;
+ shipx -= xscroll;
+ shipy -= yscroll;
+