This commit is contained in:
parent
f456cabe0f
commit
2ef58e7d9c
1 changed files with 58 additions and 24 deletions
|
@ -47,10 +47,18 @@
|
||||||
---- */
|
---- */
|
||||||
|
|
||||||
|
|
||||||
|
// ANIM_SPONGEBOB_BALLOONJUMP
|
||||||
|
static const CPlayer::AnimFrameSfx s_balloonJumpSfx[]=
|
||||||
|
{
|
||||||
|
{ 65, CSoundMediator::SFX_SPONGEBOB_BLINK, },
|
||||||
|
{ 128, CSoundMediator::SFX_SPONGEBOB_BLINK, },
|
||||||
|
};
|
||||||
|
static const int s_balloonJumpCount=sizeof(s_balloonJumpSfx)/sizeof(CPlayer::AnimFrameSfx);
|
||||||
|
|
||||||
// ANIM_SPONGEBOB_BLOWBUBBLE
|
// ANIM_SPONGEBOB_BLOWBUBBLE
|
||||||
static const CPlayer::AnimFrameSfx s_blowBubbleSfx[]=
|
static const CPlayer::AnimFrameSfx s_blowBubbleSfx[]=
|
||||||
{
|
{
|
||||||
{ 4, CSoundMediator::SFX_BUBBLE_WAND, },
|
{ 11, CSoundMediator::SFX_BUBBLE_WAND, },
|
||||||
};
|
};
|
||||||
static const int s_blowBubbleCount=sizeof(s_blowBubbleSfx)/sizeof(CPlayer::AnimFrameSfx);
|
static const int s_blowBubbleCount=sizeof(s_blowBubbleSfx)/sizeof(CPlayer::AnimFrameSfx);
|
||||||
|
|
||||||
|
@ -65,31 +73,49 @@ static const int s_buttBounceEndCount=sizeof(s_buttBounceEndSfx)/sizeof(CPlayer:
|
||||||
static const CPlayer::AnimFrameSfx s_hitGroundSfx[]=
|
static const CPlayer::AnimFrameSfx s_hitGroundSfx[]=
|
||||||
{
|
{
|
||||||
{ 8, CSoundMediator::SFX_SPONGEBOB_LAND_AFTER_FALL, },
|
{ 8, CSoundMediator::SFX_SPONGEBOB_LAND_AFTER_FALL, },
|
||||||
{ 28, CSoundMediator::SFX_SPONGEBOB_LAND_AFTER_FALL, },
|
{ 14, CSoundMediator::SFX_SPONGEBOB_LAND_AFTER_FALL, },
|
||||||
};
|
};
|
||||||
static const int s_hitGroundCount=sizeof(s_hitGroundSfx)/sizeof(CPlayer::AnimFrameSfx);
|
static const int s_hitGroundCount=sizeof(s_hitGroundSfx)/sizeof(CPlayer::AnimFrameSfx);
|
||||||
|
|
||||||
// ANIM_PLAYER_ANIM_IDLEWIND
|
// ANIM_PLAYER_ANIM_IDLEWIND
|
||||||
static const CPlayer::AnimFrameSfx s_idleWindSfx[]=
|
static const CPlayer::AnimFrameSfx s_idleWindSfx[]=
|
||||||
{
|
{
|
||||||
{ 12, CSoundMediator::SFX_HAZARD__SWAMP_GAS, },
|
{ 17, CSoundMediator::SFX_HAZARD__SWAMP_GAS, },
|
||||||
{ 28, CSoundMediator::SFX_SPONGEBOB_WALK_2, },
|
{ 24, CSoundMediator::SFX_SPONGEBOB_WALK_2, },
|
||||||
};
|
};
|
||||||
static const int s_idleWindCount=sizeof(s_idleWindSfx)/sizeof(CPlayer::AnimFrameSfx);
|
static const int s_idleWindCount=sizeof(s_idleWindSfx)/sizeof(CPlayer::AnimFrameSfx);
|
||||||
|
|
||||||
// ANIM_PLAYER_ANIM_JUMPEND
|
// ANIM_PLAYER_ANIM_JUMPEND
|
||||||
static const CPlayer::AnimFrameSfx s_jumpEndSfx[]=
|
static const CPlayer::AnimFrameSfx s_jumpEndSfx[]=
|
||||||
{
|
{
|
||||||
{ 2, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
{ 5, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
{ 3, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
{ 7, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
};
|
};
|
||||||
static const int s_jumpEndCount=sizeof(s_jumpEndSfx)/sizeof(CPlayer::AnimFrameSfx);
|
static const int s_jumpEndCount=sizeof(s_jumpEndSfx)/sizeof(CPlayer::AnimFrameSfx);
|
||||||
|
|
||||||
|
// ANIM_PLAYER_ANIM_KARATE
|
||||||
|
static const CPlayer::AnimFrameSfx s_karateSfx[]=
|
||||||
|
{
|
||||||
|
{ 12, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
|
{ 13, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
|
{ 13, CSoundMediator::SFX_SPONGEBOB_KARATE_1 },
|
||||||
|
};
|
||||||
|
static const int s_karateCount=sizeof(s_karateSfx)/sizeof(CPlayer::AnimFrameSfx);
|
||||||
|
|
||||||
// ANIM_PLAYER_ANIM_RUN
|
// ANIM_PLAYER_ANIM_RUN
|
||||||
static const CPlayer::AnimFrameSfx s_runSfx[]=
|
static const CPlayer::AnimFrameSfx s_runSfx[]=
|
||||||
{
|
{
|
||||||
{ 3, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
{ 3, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
{ 11, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
{ 11, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
|
{ 19, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
|
{ 27, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
|
{ 35, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
|
{ 43, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
|
{ 51, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
|
{ 59, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
|
{ 67, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
|
{ 75, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
|
{ 77, CSoundMediator::SFX_SPONGEBOB_BLINK },
|
||||||
};
|
};
|
||||||
static const int s_runCount=sizeof(s_runSfx)/sizeof(CPlayer::AnimFrameSfx);
|
static const int s_runCount=sizeof(s_runSfx)/sizeof(CPlayer::AnimFrameSfx);
|
||||||
|
|
||||||
|
@ -104,22 +130,29 @@ static const int s_runStopCount=sizeof(s_runStopSfx)/sizeof(CPlayer::AnimFrameSf
|
||||||
// ANIM_SPONGEBOB_WALK
|
// ANIM_SPONGEBOB_WALK
|
||||||
static const CPlayer::AnimFrameSfx s_walkSfx[]=
|
static const CPlayer::AnimFrameSfx s_walkSfx[]=
|
||||||
{
|
{
|
||||||
{ 8, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
{ 4, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
{ 15, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
{ 8, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
|
{ 12, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
|
{ 20, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
|
{ 24, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
|
{ 28, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
|
{ 36, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
|
{ 40, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
|
{ 44, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
|
{ 52, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
|
{ 56, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
|
{ 60, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
|
{ 62, CSoundMediator::SFX_SPONGEBOB_BLINK },
|
||||||
};
|
};
|
||||||
static const int s_walkCount=sizeof(s_walkSfx)/sizeof(CPlayer::AnimFrameSfx);
|
static const int s_walkCount=sizeof(s_walkSfx)/sizeof(CPlayer::AnimFrameSfx);
|
||||||
|
|
||||||
// ANIM_PLAYER_ANIM_KARATE
|
|
||||||
static const CPlayer::AnimFrameSfx s_chopSfx[]=
|
|
||||||
{
|
|
||||||
{ 12, CSoundMediator::SFX_SPONGEBOB_KARATE_1, },
|
|
||||||
};
|
|
||||||
static const int s_chopCount=sizeof(s_chopSfx)/sizeof(CPlayer::AnimFrameSfx);
|
|
||||||
|
|
||||||
// ANIM_SPONGEBOB_SWIPE
|
// ANIM_SPONGEBOB_SWIPE
|
||||||
static const CPlayer::AnimFrameSfx s_swipeSfx[]=
|
static const CPlayer::AnimFrameSfx s_swipeSfx[]=
|
||||||
{
|
{
|
||||||
{ 8, CSoundMediator::SFX_SPONGEBOB_NET, },
|
{ 8, CSoundMediator::SFX_SPONGEBOB_NET, },
|
||||||
|
{ 10, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
|
{ 16, CSoundMediator::SFX_SPONGEBOB_WALK_1 },
|
||||||
|
{ 17, CSoundMediator::SFX_SPONGEBOB_WALK_2 },
|
||||||
};
|
};
|
||||||
static const int s_swipeCount=sizeof(s_swipeSfx)/sizeof(CPlayer::AnimFrameSfx);
|
static const int s_swipeCount=sizeof(s_swipeSfx)/sizeof(CPlayer::AnimFrameSfx);
|
||||||
|
|
||||||
|
@ -128,18 +161,19 @@ static const int s_swipeCount=sizeof(s_swipeSfx)/sizeof(CPlayer::AnimFrameSfx);
|
||||||
// This is the table that ties up anims to sfx
|
// This is the table that ties up anims to sfx
|
||||||
const CPlayer::AnimSfx CPlayer::s_animSfx[]=
|
const CPlayer::AnimSfx CPlayer::s_animSfx[]=
|
||||||
{
|
{
|
||||||
|
{ ANIM_SPONGEBOB_BALLOONJUMP, s_balloonJumpCount, s_balloonJumpSfx },
|
||||||
{ ANIM_SPONGEBOB_BLOWBUBBLE, s_blowBubbleCount, s_blowBubbleSfx },
|
{ ANIM_SPONGEBOB_BLOWBUBBLE, s_blowBubbleCount, s_blowBubbleSfx },
|
||||||
{ ANIM_SPONGEBOB_BUTTBOUNCEEND, s_buttBounceEndCount, s_buttBounceEndSfx },
|
{ ANIM_SPONGEBOB_BUTTBOUNCEEND, s_buttBounceEndCount, s_buttBounceEndSfx },
|
||||||
{ ANIM_SPONGEBOB_HITGROUND, s_hitGroundCount, s_hitGroundSfx },
|
{ ANIM_SPONGEBOB_HITGROUND, s_hitGroundCount, s_hitGroundSfx },
|
||||||
{ ANIM_SPONGEBOB_IDLEWIND, s_idleWindCount, s_idleWindSfx },
|
{ ANIM_SPONGEBOB_IDLEWIND, s_idleWindCount, s_idleWindSfx },
|
||||||
{ ANIM_SPONGEBOB_JUMPEND, s_jumpEndCount, s_jumpEndSfx },
|
{ ANIM_SPONGEBOB_JUMPEND, s_jumpEndCount, s_jumpEndSfx },
|
||||||
|
{ ANIM_SPONGEBOB_KARATE, s_karateCount, s_karateSfx },
|
||||||
{ ANIM_SPONGEBOB_RUN, s_runCount, s_runSfx },
|
{ ANIM_SPONGEBOB_RUN, s_runCount, s_runSfx },
|
||||||
{ ANIM_SPONGEBOB_RUNSTOP, s_runStopCount, s_runStopSfx },
|
{ ANIM_SPONGEBOB_RUNSTOP, s_runStopCount, s_runStopSfx },
|
||||||
{ ANIM_SPONGEBOB_WALK, s_walkCount, s_walkSfx },
|
{ ANIM_SPONGEBOB_WALK, s_walkCount, s_walkSfx },
|
||||||
{ ANIM_SPONGEBOB_KARATE, s_chopCount, s_chopSfx },
|
|
||||||
{ ANIM_SPONGEBOB_SWIPE, s_swipeCount, s_swipeSfx },
|
{ ANIM_SPONGEBOB_SWIPE, s_swipeCount, s_swipeSfx },
|
||||||
};
|
};
|
||||||
const int CPlayer::s_numAnimSfx=10; // Grrrrrrrr! (pkg)
|
const int CPlayer::s_numAnimSfx=11; // Grrrrrrrr! (pkg)
|
||||||
|
|
||||||
|
|
||||||
/*===========================================================================
|
/*===========================================================================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue