This commit is contained in:
parent
79666b9177
commit
69527a4a25
@ -116,12 +116,21 @@ int balloonsize=350;
|
||||
void CPlayerModeBalloon::render(DVECTOR *_pos)
|
||||
{
|
||||
DVECTOR pos;
|
||||
int frame;
|
||||
|
||||
CPlayerModeBase::render();
|
||||
|
||||
pos.vx=_pos->vx+balloonx;
|
||||
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);
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
|
@ -51,6 +51,7 @@ private:
|
||||
enum
|
||||
{
|
||||
BALLOON_TIMEOUT=5*60,
|
||||
BALLOON_POP_FRAMES=4,
|
||||
};
|
||||
int m_timer;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user