This commit is contained in:
Paul 2001-06-27 21:02:49 +00:00
parent 7495c46e21
commit 24da0ea5a4
2 changed files with 22 additions and 0 deletions

View File

@ -142,6 +142,26 @@ void CPlayerModeBalloon::render(DVECTOR *_pos)
CGameScene::getSpriteBank()->printFT4Scaled(frame,pos.vx,pos.vy,0,0,5,balloonsize);
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void CPlayerModeBalloon::renderModeUi()
{
if(m_timer<BALLOON_TIMEOUT-BALLOON_FLASH_TIME||m_timer&2)
{
SpriteBank *sb;
sFrameHdr *fh;
sb=CGameScene::getSpriteBank();
fh=sb->getFrameHeader(FRM__BALLOON);
sb->printFT4Scaled(fh,CPlayer::POWERUPUI_ICONX,CPlayer::POWERUPUI_ICONY,0,0,CPlayer::POWERUPUI_OT,384);
}
}
/*----------------------------------------------------------------------
Function:
Purpose:

View File

@ -40,6 +40,7 @@ public:
virtual void enter();
virtual void think();
virtual void render(DVECTOR *_pos);
virtual void renderModeUi();
virtual int canFallForever() {return true;}
virtual const struct PlayerMetrics *getPlayerMetrics();
@ -52,6 +53,7 @@ private:
{
BALLOON_TIMEOUT=8*60,
BALLOON_POP_FRAMES=4,
BALLOON_FLASH_TIME=2*60,
};
int m_timer;
int m_playedPopSound;