This commit is contained in:
parent
ce3b2822df
commit
f0b0183e94
3 changed files with 21 additions and 1 deletions
|
@ -334,6 +334,8 @@ static SFXDETAILS s_sfxDetails[CSoundMediator::NUM_SFXIDS]=
|
||||||
{ 1, 168, 0 }, // SFX_BEEP10
|
{ 1, 168, 0 }, // SFX_BEEP10
|
||||||
{ 1, 169, 0 }, // SFX_BEEP11
|
{ 1, 169, 0 }, // SFX_BEEP11
|
||||||
{ 1, 170, 0 }, // SFX_BEEP12
|
{ 1, 170, 0 }, // SFX_BEEP12
|
||||||
|
{ 3, 171, 0 }, // SFX_TELEPORT1*
|
||||||
|
{ 3, 172, 0 }, // SFX_TELEPORT2*
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -181,6 +181,7 @@ public:
|
||||||
SFX_BEEP10,
|
SFX_BEEP10,
|
||||||
SFX_BEEP11,
|
SFX_BEEP11,
|
||||||
SFX_BEEP12,
|
SFX_BEEP12,
|
||||||
|
SFX_TELEPORT1, SFX_TELEPORT2,
|
||||||
|
|
||||||
NUM_SFXIDS
|
NUM_SFXIDS
|
||||||
};
|
};
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include "triggers\tteleprt.h"
|
#include "triggers\tteleprt.h"
|
||||||
|
|
||||||
#ifndef __GAME_GAME_H__
|
#ifndef __GAME_GAME_H__
|
||||||
#include "game\game.h"
|
#include "game\game.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __PLAYER_PLAYER_H__
|
#ifndef __PLAYER_PLAYER_H__
|
||||||
|
@ -34,6 +34,10 @@
|
||||||
#include "friend\fgary.h"
|
#include "friend\fgary.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __SOUND_SOUND_H__
|
||||||
|
#include "sound\sound.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Std Lib
|
/* Std Lib
|
||||||
------- */
|
------- */
|
||||||
|
@ -106,8 +110,21 @@ void CTeleportTrigger::collidedWith(CThing *_thisThing)
|
||||||
|
|
||||||
if(GameScene.triggerTeleportEffect())
|
if(GameScene.triggerTeleportEffect())
|
||||||
{
|
{
|
||||||
|
CSoundMediator::SFXID sfx;
|
||||||
|
|
||||||
((CPlayer*)_thisThing)->clearPlatform();
|
((CPlayer*)_thisThing)->clearPlatform();
|
||||||
((CPlayer*)_thisThing)->teleportTo(m_boxX1+8,m_boxY1+16);
|
((CPlayer*)_thisThing)->teleportTo(m_boxX1+8,m_boxY1+16);
|
||||||
|
|
||||||
|
if(chapter==5&&level==4)
|
||||||
|
{
|
||||||
|
sfx=CSoundMediator::SFX_TELEPORT1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sfx=CSoundMediator::SFX_TELEPORT2;
|
||||||
|
}
|
||||||
|
|
||||||
|
CSoundMediator::playSfx(sfx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue