fixed interaction between arrow brightness and boomerang

fixing more course problems
This commit is contained in:
Chris Danford
2003-02-17 02:45:30 +00:00
parent 91d5ac72a2
commit 5028fab1bc
22 changed files with 442 additions and 342 deletions
+5 -2
View File
@@ -182,9 +182,12 @@ float ArrowGetGlow( PlayerNumber pn, float fYPos, float fPercentFadeToFail )
return SCALE( fDistFromHalf, 0, 0.5f, 1.3f, 0 );
}
float ArrowGetBrightness( PlayerNumber pn, float fYOffset )
float ArrowGetBrightness( PlayerNumber pn, float fNoteBeat )
{
float fBrightness = SCALE( fYOffset, 0, -ARROW_SIZE, 1.f, 0.f );
float fSongBeat = GAMESTATE->m_fSongBeat;
float fBeatsUntilStep = fNoteBeat - fSongBeat;
float fBrightness = SCALE( fBeatsUntilStep, 0, -1, 1.f, 0.f );
CLAMP( fBrightness, 0, 1 );
// noisy printf( "fBrightness = %f\n", fBrightness );
return fBrightness;