projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bde2d7
)
In the invincible mode, stars start flickering when the time is almost gone, as reque...
author
Ricardo Cruz
<rick2@aeiou.pt>
Thu, 29 Apr 2004 23:12:44 +0000
(23:12 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Thu, 29 Apr 2004 23:12:44 +0000
(23:12 +0000)
SVN-Revision: 854
src/player.cpp
patch
|
blob
|
history
src/player.h
patch
|
blob
|
history
diff --git
a/src/player.cpp
b/src/player.cpp
index
afc4eb5
..
337313d
100644
(file)
--- 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
ef3df44
..
7997712
100644
(file)
--- 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... */