This commit is contained in:
parent
fdebc2da27
commit
2668b7ca7a
20 changed files with 352 additions and 41 deletions
|
@ -22,6 +22,10 @@
|
|||
#include "pad\pads.h"
|
||||
#endif
|
||||
|
||||
#ifndef __PAD_VIBE_H__
|
||||
#include "pad\vibe.h"
|
||||
#endif
|
||||
|
||||
#ifndef __GAME_GAMESLOT_H__
|
||||
#include "game\gameslot.h"
|
||||
#endif
|
||||
|
@ -2084,6 +2088,7 @@ void CPlayer::takeDamage(DAMAGE_TYPE _damage,REACT_DIRECTION _reactDirection,CTh
|
|||
break;
|
||||
}
|
||||
dieYouPorousFreak(deathType);
|
||||
CPadVibrationManager::setVibration(0,CPadVibrationManager::VIBE_LONG_STROBEY);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2130,6 +2135,7 @@ void CPlayer::takeDamage(DAMAGE_TYPE _damage,REACT_DIRECTION _reactDirection,CTh
|
|||
m_currentPlayerModeClass->setState(STATE_JUMPBACK);
|
||||
}
|
||||
m_invincibleFrameCount=INVINCIBLE_FRAMES__HIT;
|
||||
CPadVibrationManager::setVibration(0,CPadVibrationManager::VIBE_SHORT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
|
||||
#include "player\pmbloon.h"
|
||||
|
||||
#ifndef __PAD_VIBE_H__
|
||||
#include "pad\vibe.h"
|
||||
#endif
|
||||
|
||||
#ifndef __GFX_SPRBANK_H__
|
||||
#include "gfx\sprbank.h"
|
||||
#endif
|
||||
|
@ -103,6 +107,7 @@ void CPlayerModeBalloon::think()
|
|||
if(!m_playedPopSound)
|
||||
{
|
||||
CSoundMediator::playSfx(CSoundMediator::SFX_BALLOON_POP);
|
||||
CPadVibrationManager::setVibration(0,CPadVibrationManager::VIBE_SHORT);
|
||||
}
|
||||
m_player->setMode(PLAYER_MODE_BASICUNARMED);
|
||||
}
|
||||
|
@ -136,6 +141,7 @@ void CPlayerModeBalloon::render(DVECTOR *_pos)
|
|||
if(!m_playedPopSound)
|
||||
{
|
||||
CSoundMediator::playSfx(CSoundMediator::SFX_BALLOON_POP);
|
||||
CPadVibrationManager::setVibration(0,CPadVibrationManager::VIBE_SHORT);
|
||||
m_playedPopSound=true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
#include "gfx\sprbank.h"
|
||||
#endif
|
||||
|
||||
#ifndef __PAD_VIBE_H__
|
||||
#include "pad\vibe.h"
|
||||
#endif
|
||||
|
||||
// States
|
||||
#ifndef __PLAYER__PSLOOK_H__
|
||||
#include "player\pslook.h"
|
||||
|
@ -240,6 +244,7 @@ void CPlayerModeCoralBlower::think()
|
|||
thing=CThingManager::checkCollisionAreaAgainstThings(&suckRect,CThing::TYPE_ENEMY,true);
|
||||
}
|
||||
}
|
||||
CPadVibrationManager::setVibration(0,CPadVibrationManager::VIBE_CORAL_BLOWER_SUCK);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -249,6 +254,7 @@ void CPlayerModeCoralBlower::think()
|
|||
m_enemyFrame = m_enemy->getFrame();
|
||||
m_blowerState=BLOWER_STATE__FULL;
|
||||
}
|
||||
CPadVibrationManager::setVibration(0,CPadVibrationManager::VIBE_CORAL_BLOWER_SUCK);
|
||||
}
|
||||
break;
|
||||
case BLOWER_STATE__FULL:
|
||||
|
@ -291,6 +297,8 @@ void CPlayerModeCoralBlower::think()
|
|||
//projectile->setGraphic( projectileGfx );
|
||||
projectile->setGraphic( m_enemyFrame );
|
||||
projectile->setHasRGB( false );
|
||||
|
||||
CPadVibrationManager::setVibration(0,CPadVibrationManager::VIBE_MEDIUM);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
|
||||
#include "player\pmjelly.h"
|
||||
|
||||
#ifndef __PAD_VIBE_H__
|
||||
#include "pad\vibe.h"
|
||||
#endif
|
||||
|
||||
#ifndef __GFX_SPRBANK_H__
|
||||
#include "gfx\sprbank.h"
|
||||
#endif
|
||||
|
@ -198,10 +202,12 @@ void CPlayerModeJellyLauncher::think()
|
|||
frame=m_firingTime;
|
||||
}
|
||||
m_player->setAnimFrame(frame);
|
||||
CPadVibrationManager::setVibration(0,CPadVibrationManager::VIBE_MEDIUM,(m_firingTime*32)/TIMEOUT_FOR_BIG_SHOT);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_firingState=FIRING_STATE__FIRING;
|
||||
CPadVibrationManager::setVibration(0,CPadVibrationManager::VIBE_MEDIUM);
|
||||
m_player->setAnimNo(ANIM_SPONGEBOB_FIREEND);
|
||||
launchProjectile();
|
||||
}
|
||||
|
|
|
@ -18,6 +18,10 @@
|
|||
|
||||
#include "player\psbutt.h"
|
||||
|
||||
#ifndef __PAD_VIBE_H__
|
||||
#include "pad\vibe.h"
|
||||
#endif
|
||||
|
||||
#ifndef __PLAYER_PLAYER_H__
|
||||
#include "player\player.h"
|
||||
#endif
|
||||
|
@ -180,6 +184,10 @@ void CPlayerStateButtBounceLand::enter(CPlayerModeBase *_playerMode)
|
|||
m_bounceOffFloor=true;
|
||||
}
|
||||
}
|
||||
if(!m_bounceOffFloor)
|
||||
{
|
||||
CPadVibrationManager::setVibration(0,CPadVibrationManager::VIBE_SHORT);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -217,6 +225,7 @@ void CPlayerStateButtBounceUp::enter(CPlayerModeBase *_playerMode)
|
|||
DVECTOR pos;
|
||||
pos=_playerMode->getPlayerPos();
|
||||
CGameBubicleFactory::spawnBubicles(pos.vx-20,pos.vy,40,10,CGameBubicleFactory::TYPE_MEDIUM);
|
||||
CPadVibrationManager::setVibration(0,CPadVibrationManager::VIBE_MEDIUM);
|
||||
}
|
||||
|
||||
_playerMode->setAnimNo(ANIM_SPONGEBOB_BUTTBOUNCEEND);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue