- new_bang_dots(ship.x,ship.y,ship.dx,ship.dy,ship.image);
- ship.dx *= 0.5; ship.dy *= 0.5;
- if(ship.dx < SCREENDXMIN) ship.dx = SCREENDXMIN;
- if(--ship.lives <= 0) {
+ new_bang_dots(ship.x,ship.y,ship.dx,ship.dy,ship.image);
+
+ if(--ship.lives) {
+ state = DEAD_PAUSE;
+ state_timeout = DEAD_PAUSE_LENGTH;
+ ship.dx = (ship.dx < 0) ? -sqrt(-ship.dx) : sqrt(ship.dx);
+ ship.dy = (ship.dy < 0) ? -sqrt(-ship.dy) : sqrt(ship.dy);
+ if(ship.dx < SCREENDXMIN) ship.dx = SCREENDXMIN;
+ } else {