This commit is contained in:
parent
9858004326
commit
b8f2d4671a
@ -24,6 +24,7 @@ void CFXBubble::init(DVECTOR const &_Pos)
|
||||
CurrentScaleX=CurrentScaleY=getRndRange(ONE/2)+(ONE/2);
|
||||
Die=0;
|
||||
XIdx=getRnd()&15;
|
||||
Lifetime = 2 * GameState::getOneSecondInFrames();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
@ -32,6 +33,15 @@ void CFXBubble::init(DVECTOR const &_Pos)
|
||||
int XT[16]={ 0,+1,+0,+1,+0, 0,-1,+0,-1,+0,0,+1,+0,+1,+0,};
|
||||
void CFXBubble::think(int _frames)
|
||||
{
|
||||
if (Lifetime > 0)
|
||||
{
|
||||
Lifetime -= _frames;
|
||||
}
|
||||
else
|
||||
{
|
||||
Die = true;
|
||||
}
|
||||
|
||||
if (Die)
|
||||
{
|
||||
if (renderFrame!=FRM__BUBBLEPOP)
|
||||
|
@ -18,6 +18,7 @@ virtual void killFX();
|
||||
protected:
|
||||
s8 Die;
|
||||
u16 XIdx;
|
||||
s32 Lifetime;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user