In the invincible mode, stars start flickering when the time is almost gone, as reque...
authorRicardo Cruz <rick2@aeiou.pt>
Thu, 29 Apr 2004 23:12:44 +0000 (23:12 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Thu, 29 Apr 2004 23:12:44 +0000 (23:12 +0000)
SVN-Revision: 854

src/player.cpp
src/player.h

index afc4eb5..337313d 100644 (file)
@@ -581,7 +581,7 @@ Player::draw()
             }
 
           // Draw blinking star overlay
-          if (invincible_timer.started())
+          if (invincible_timer.started() && (invincible_timer.get_left() > TUX_INVINCIBLE_TIME_WARNING || global_frame_counter % 2))
             {
               if (size == SMALL || duck)
                 smalltux_star->draw(base.x - scroll_x, base.y);
index ef3df44..7997712 100644 (file)
@@ -33,6 +33,7 @@
 
 #define TUX_SAFE_TIME 750
 #define TUX_INVINCIBLE_TIME 10000
+#define TUX_INVINCIBLE_TIME_WARNING 2000
 #define TIME_WARNING 20000     /* When to alert player they're low on time! */
 
 /* One-ups... */