This commit is contained in:
parent
b8d08e6ded
commit
56a8006029
10 changed files with 109 additions and 25 deletions
|
@ -125,10 +125,12 @@ void CPlayerStateButtBounceFall::think(CPlayerModeBase *_playerMode)
|
|||
---------------------------------------------------------------------- */
|
||||
void CPlayerStateButtBounceLand::enter(CPlayerModeBase *_playerMode)
|
||||
{
|
||||
// DVECTOR pos;
|
||||
//
|
||||
// pos=_playerMode->getPlayerPos();
|
||||
// CGameBubicleFactory::spawnBubicles(pos.vx,pos.vy,40,10,CGameBubicleFactory::TYPE_MEDIUM);
|
||||
if(_playerMode->getIsInWater())
|
||||
{
|
||||
DVECTOR pos;
|
||||
pos=_playerMode->getPlayerPos();
|
||||
CGameBubicleFactory::spawnBubicles(pos.vx-20,pos.vy,40,10,CGameBubicleFactory::TYPE_MEDIUM);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -155,6 +157,13 @@ void CPlayerStateButtBounceLand::think(CPlayerModeBase *_playerMode)
|
|||
---------------------------------------------------------------------- */
|
||||
void CPlayerStateButtBounceUp::enter(CPlayerModeBase *_playerMode)
|
||||
{
|
||||
if(_playerMode->getIsInWater())
|
||||
{
|
||||
DVECTOR pos;
|
||||
pos=_playerMode->getPlayerPos();
|
||||
CGameBubicleFactory::spawnBubicles(pos.vx-20,pos.vy,40,10,CGameBubicleFactory::TYPE_MEDIUM);
|
||||
}
|
||||
|
||||
_playerMode->setAnimNo(ANIM_SPONGEBOB_BUTTBOUNCEEND);
|
||||
m_bounceFrames=0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue