This commit is contained in:
parent
69527a4a25
commit
0f49c8b96b
@ -86,6 +86,7 @@ void CPlayerModeBalloon::enter()
|
||||
{
|
||||
CPlayerModeBase::enter();
|
||||
m_timer=0;
|
||||
m_playedPopSound=false;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
@ -98,8 +99,11 @@ void CPlayerModeBalloon::think()
|
||||
{
|
||||
CPlayerModeBase::think();
|
||||
if(++m_timer>BALLOON_TIMEOUT)
|
||||
{
|
||||
if(!m_playedPopSound)
|
||||
{
|
||||
CSoundMediator::playSfx(CSoundMediator::SFX_BALLOON_POP);
|
||||
}
|
||||
m_player->setMode(PLAYER_MODE_FULLUNARMED);
|
||||
}
|
||||
}
|
||||
@ -129,6 +133,11 @@ void CPlayerModeBalloon::render(DVECTOR *_pos)
|
||||
else
|
||||
{
|
||||
frame=FRM__BALLOONBURST;
|
||||
if(!m_playedPopSound)
|
||||
{
|
||||
CSoundMediator::playSfx(CSoundMediator::SFX_BALLOON_POP);
|
||||
m_playedPopSound=true;
|
||||
}
|
||||
}
|
||||
CGameScene::getSpriteBank()->printFT4Scaled(frame,pos.vx,pos.vy,0,0,5,balloonsize);
|
||||
}
|
||||
|
@ -54,6 +54,7 @@ private:
|
||||
BALLOON_POP_FRAMES=4,
|
||||
};
|
||||
int m_timer;
|
||||
int m_playedPopSound;
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user