This commit is contained in:
Paul 2001-05-25 19:27:38 +00:00
parent 79666b9177
commit 69527a4a25
2 changed files with 11 additions and 1 deletions

View File

@ -116,12 +116,21 @@ int balloonsize=350;
void CPlayerModeBalloon::render(DVECTOR *_pos) void CPlayerModeBalloon::render(DVECTOR *_pos)
{ {
DVECTOR pos; DVECTOR pos;
int frame;
CPlayerModeBase::render(); CPlayerModeBase::render();
pos.vx=_pos->vx+balloonx; pos.vx=_pos->vx+balloonx;
pos.vy=_pos->vy+balloony; pos.vy=_pos->vy+balloony;
CGameScene::getSpriteBank()->printFT4Scaled(FRM__BALLOON,pos.vx,pos.vy,0,0,5,balloonsize); if(m_timer<BALLOON_TIMEOUT-BALLOON_POP_FRAMES)
{
frame=FRM__BALLOON;
}
else
{
frame=FRM__BALLOONBURST;
}
CGameScene::getSpriteBank()->printFT4Scaled(frame,pos.vx,pos.vy,0,0,5,balloonsize);
} }
/*---------------------------------------------------------------------- /*----------------------------------------------------------------------

View File

@ -51,6 +51,7 @@ private:
enum enum
{ {
BALLOON_TIMEOUT=5*60, BALLOON_TIMEOUT=5*60,
BALLOON_POP_FRAMES=4,
}; };
int m_timer; int m_timer;