Added flashing red light ala previous DDR mixes during DANGER animation on the dancing characters.

This commit is contained in:
Kevin Slaughter
2003-08-26 07:44:22 +00:00
parent c51ac60bb5
commit 5c2d7c5bd3
3 changed files with 15 additions and 3 deletions
+5
View File
@@ -463,10 +463,13 @@ void Background::DrawPrimitives()
if( IsDangerVisible() ) if( IsDangerVisible() )
{ {
// Since this only shows when DANGER is visible, it will flash red on it's own accord :)
m_pDancingCharacters->m_bDrawDangerLight = true;
m_BGADanger.Draw(); m_BGADanger.Draw();
} }
else else
{ {
m_pDancingCharacters->m_bDrawDangerLight = false;
if( m_pCurrentBGA ) if( m_pCurrentBGA )
m_pCurrentBGA->Draw(); m_pCurrentBGA->Draw();
if( m_pFadingBGA ) if( m_pFadingBGA )
@@ -474,7 +477,9 @@ void Background::DrawPrimitives()
} }
if( m_pDancingCharacters ) if( m_pDancingCharacters )
{
m_pDancingCharacters->Draw(); m_pDancingCharacters->Draw();
}
m_quadBGBrightness.Draw(); m_quadBGBrightness.Draw();
for( int i=0; i<4; i++ ) for( int i=0; i<4; i++ )
+7 -1
View File
@@ -42,6 +42,7 @@ const float MODEL_X_TWO_PLAYERS[NUM_PLAYERS] = { +8, -8 };
DancingCharacters::DancingCharacters() DancingCharacters::DancingCharacters()
{ {
m_bDrawDangerLight = false;
for( int p=0; p<NUM_PLAYERS; p++ ) for( int p=0; p<NUM_PLAYERS; p++ )
{ {
if( !GAMESTATE->IsPlayerEnabled(p) ) if( !GAMESTATE->IsPlayerEnabled(p) )
@@ -190,11 +191,16 @@ void DancingCharacters::DrawPrimitives()
m_LookAt, m_LookAt,
RageVector3(0,1,0) ); RageVector3(0,1,0) );
RageColor DL;
DL = RageColor(0.8f,0.8f,0.8f,0.8f);
if( m_bDrawDangerLight )
DL = RageColor(1,0,0,1);
DISPLAY->SetLighting( true ); DISPLAY->SetLighting( true );
DISPLAY->SetLightDirectional( DISPLAY->SetLightDirectional(
0, 0,
RageColor(0.4f,0.4f,0.4f,1), RageColor(0.4f,0.4f,0.4f,1),
RageColor(0.8f,0.8f,0.8f,0.8f), DL,
RageColor(0.8f,0.8f,0.8f,0.8f), RageColor(0.8f,0.8f,0.8f,0.8f),
RageVector3(+1, 0, +1) ); RageVector3(+1, 0, +1) );
+1
View File
@@ -25,6 +25,7 @@ public:
virtual void Update( float fDelta ); virtual void Update( float fDelta );
virtual void DrawPrimitives(); virtual void DrawPrimitives();
bool m_bDrawDangerLight;
protected: protected: