* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
float shipdx = SCREENDXMIN, shipdy = 0.0; // Change in X position per tick.
float screendx = SCREENDXMIN, screendy = 0.0;
float xscroll, yscroll;
float shipdx = SCREENDXMIN, shipdy = 0.0; // Change in X position per tick.
float screendx = SCREENDXMIN, screendy = 0.0;
float xscroll, yscroll;
float framelen; // this controls the speed of everything that moves.
float bangx, bangy, bangdx, bangdy;
float framelen; // this controls the speed of everything that moves.
float bangx, bangy, bangdx, bangdy;
- if(screendx < SCREENDXMIN) screendx=SCREENDXMIN;
+
+ // taper off if we would hit the barrier in under 2 seconds.
+ if(back_dist + (screendx - SCREENDXMIN)*TO_TICKS(2) < 0) {
+ screendx = SCREENDXMIN - (back_dist/TO_TICKS(2));
+ }