From 36ae3fc69e9cae1b49cb2dbb4dabb595e7345fe7 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Thu, 29 Apr 2004 23:12:44 +0000 Subject: [PATCH] In the invincible mode, stars start flickering when the time is almost gone, as requested by Bill Kendrick. SVN-Revision: 854 --- src/player.cpp | 2 +- src/player.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/player.cpp b/src/player.cpp index afc4eb5e0..337313d16 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -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); diff --git a/src/player.h b/src/player.h index ef3df4471..7997712d3 100644 --- a/src/player.h +++ b/src/player.h @@ -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... */ -- 2.11.0