This commit is contained in:
parent
6c6f7f744b
commit
2b8ba9ab84
@ -408,14 +408,12 @@ void CGameOverScene::initGameOver()
|
||||
void CGameOverScene::thinkGameOver(int _frames)
|
||||
{
|
||||
if(!CFader::isFading())
|
||||
{
|
||||
if(!m_finishedGrowingText)
|
||||
{
|
||||
m_gameOverTimer+=_frames;
|
||||
}
|
||||
else
|
||||
|
||||
if(m_finishedGrowingText&&!m_readyToExit)
|
||||
{
|
||||
if(!m_readyToExit&&PadGetDown(0)&(PAD_START|PAD_CROSS))
|
||||
if(PadGetDown(0)&(PAD_START|PAD_CROSS)||m_gameOverTimer>GAMEOVER_DISPLAY_TIME)
|
||||
{
|
||||
m_readyToExit=true;
|
||||
CFader::setFadingOut();
|
||||
|
@ -79,6 +79,7 @@ private:
|
||||
GAMEOVER_FONT_GROWSPEED=150,
|
||||
GAMEOVER_FONT_GROWSPACING=900,
|
||||
GAMEOVER_FONT_MAXSIN=1500,
|
||||
GAMEOVER_DISPLAY_TIME=60*10,
|
||||
};
|
||||
void initGameOver();
|
||||
void thinkGameOver(int _frames);
|
||||
|
Loading…
Reference in New Issue
Block a user