This commit is contained in:
parent
6d6468b54a
commit
a663cc0efe
8 changed files with 36 additions and 15 deletions
|
@ -301,7 +301,6 @@ thing_src := thing
|
|||
|
||||
triggers_src := trigger \
|
||||
tcamlock \
|
||||
tlevexit \
|
||||
tlook \
|
||||
trestart \
|
||||
tteleprt \
|
||||
|
|
|
@ -34,6 +34,10 @@
|
|||
#include "map\map.h"
|
||||
#endif
|
||||
|
||||
#ifndef __SOUND_SOUND_H__
|
||||
#include "sound\sound.h"
|
||||
#endif
|
||||
|
||||
|
||||
/* Std Lib
|
||||
------- */
|
||||
|
@ -65,9 +69,7 @@ CFmaScene FmaScene;
|
|||
|
||||
|
||||
|
||||
// tmp
|
||||
#include "pad\pads.h"
|
||||
// tmp
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
|
@ -86,7 +88,8 @@ void CFmaScene::init()
|
|||
m_level=new ("FMALevel") CLevel();
|
||||
m_level->init(25);
|
||||
|
||||
m_cameraPos.vx=m_cameraPos.vy=0;
|
||||
m_cameraPos.vx=-30;
|
||||
m_cameraPos.vy=280;
|
||||
m_readyToShutdown=false;
|
||||
}
|
||||
|
||||
|
@ -100,6 +103,7 @@ void CFmaScene::init()
|
|||
void CFmaScene::shutdown()
|
||||
{
|
||||
m_level->shutdown(); delete m_level;
|
||||
CSoundMediator::dumpSong();
|
||||
|
||||
CConversation::shutdown();
|
||||
CThingManager::shutdown();
|
||||
|
@ -128,7 +132,7 @@ void CFmaScene::render()
|
|||
---------------------------------------------------------------------- */
|
||||
void CFmaScene::think(int _frames)
|
||||
{
|
||||
// tmp
|
||||
#ifdef __USER_paul__
|
||||
if(PadGetHeld(0)&PAD_UP)
|
||||
{
|
||||
m_cameraPos.vy-=10*_frames;
|
||||
|
@ -145,11 +149,11 @@ void CFmaScene::think(int _frames)
|
|||
{
|
||||
m_cameraPos.vx+=10*_frames;
|
||||
}
|
||||
else if(PadGetDown(0)&PAD_START)
|
||||
#endif
|
||||
if(PadGetDown(0)&(PAD_CROSS|PAD_START))
|
||||
{
|
||||
startShutdown();
|
||||
}
|
||||
// tmp
|
||||
|
||||
CThingManager::thinkAllThings(_frames);
|
||||
CConversation::think(_frames);
|
||||
|
|
|
@ -79,6 +79,11 @@
|
|||
#include "map\map.h"
|
||||
#endif
|
||||
|
||||
#ifndef __FMA_FMA_H__
|
||||
#include "fma\fma.h"
|
||||
#endif
|
||||
|
||||
|
||||
#include "gfx\actor.h"
|
||||
|
||||
int RenderZ=256;
|
||||
|
@ -248,8 +253,15 @@ void CGameScene::think(int _frames)
|
|||
}
|
||||
else if(s_levelFinished)
|
||||
{
|
||||
// Level finished - go to map
|
||||
GameState::setNextScene(&MapScene);
|
||||
// Level finished - go to map or fma
|
||||
if(getLevelNumber()==4)
|
||||
{
|
||||
GameState::setNextScene(&FmaScene);
|
||||
}
|
||||
else
|
||||
{
|
||||
GameState::setNextScene(&MapScene);
|
||||
}
|
||||
s_readyToExit=true;
|
||||
}
|
||||
#ifdef __VERSION_DEBUG__
|
||||
|
|
|
@ -407,7 +407,8 @@ void CLevel::initThings(int _respawningLevel)
|
|||
TriggerList=(sThingTrigger*)MakePtr(Hdr,sizeof(sThingHdr));
|
||||
for(int i=0;i<TriggerCount;i++)
|
||||
{
|
||||
if (TriggerList[i].Type!=CTrigger::TRIGGER_CAMLOCK)
|
||||
if (TriggerList[i].Type!=CTrigger::TRIGGER_CAMLOCK&&
|
||||
TriggerList[i].Type!=CTrigger::TRIGGER_EXIT)
|
||||
{
|
||||
CTrigger::Create(&TriggerList[i]);
|
||||
}
|
||||
|
|
|
@ -160,6 +160,7 @@ DVECTOR CQuestItemPickup::getSizeForPlacement()
|
|||
---------------------------------------------------------------------- */
|
||||
void CQuestItemPickup::collect(class CPlayer *_player)
|
||||
{
|
||||
CGameScene::levelFinished();
|
||||
CBasePickup::collect(_player);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
NO LONGER USED BUT LEFT IN VSS INCASE ANYONE CHANGES THEIR MIND... (PKG)
|
||||
|
||||
|
||||
|
||||
/*=========================================================================
|
||||
|
||||
tlevexit.cpp
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
NO LONGER USED BUT LEFT IN VSS INCASE ANYONE CHANGES THEIR MIND... (PKG)
|
||||
|
||||
|
||||
|
||||
/*=========================================================================
|
||||
|
||||
tlevexit.h
|
||||
|
|
|
@ -15,10 +15,6 @@
|
|||
#include "triggers\trigger.h"
|
||||
#endif
|
||||
|
||||
#ifndef __TRIGGERS_TLEVEXIT_H__
|
||||
#include "triggers\tlevexit.h"
|
||||
#endif
|
||||
|
||||
#ifndef __TRIGGERS_TRESTART_H__
|
||||
#include "triggers\trestart.h"
|
||||
#endif
|
||||
|
@ -147,7 +143,7 @@ CTrigger *trigger;
|
|||
{
|
||||
// Exit trigger
|
||||
case TRIGGER_EXIT:
|
||||
trigger=(CTrigger*)new ("LevelExitTrigger") CLevelExitTrigger();
|
||||
ASSERT("EXIT TRIGGERS HAVE BEEN REMOVED - HOW DID YOU GET HERE ANYWAY!?");
|
||||
break;
|
||||
|
||||
// Level respawn trigger
|
||||
|
|
Loading…
Add table
Reference in a new issue