This commit is contained in:
parent
a13f0d8e4f
commit
658c4d7637
3 changed files with 11 additions and 2 deletions
|
@ -41,7 +41,8 @@
|
||||||
class CDemoGameScene : public CGameScene
|
class CDemoGameScene : public CGameScene
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void createPlayer();
|
virtual void createPlayer();
|
||||||
|
virtual int canPause() {return false;}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -123,6 +123,12 @@ void CGameScene::createPlayer()
|
||||||
m_player=new ("player") CPlayer();
|
m_player=new ("player") CPlayer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This is also to be overloaded for demomode.. to stop the pause menu appearing
|
||||||
|
int CGameScene::canPause()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
@ -159,7 +165,8 @@ void CGameScene::think(int _frames)
|
||||||
// }
|
// }
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
if(!m_pauseMenu->isActive()&&PadGetDown(0)&PAD_START)
|
|
||||||
|
if(!m_pauseMenu->isActive()&&PadGetDown(0)&PAD_START&&canPause())
|
||||||
{
|
{
|
||||||
m_pauseMenu->select();
|
m_pauseMenu->select();
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,7 @@ virtual ~CGameScene() {;}
|
||||||
|
|
||||||
void init();
|
void init();
|
||||||
virtual void createPlayer();
|
virtual void createPlayer();
|
||||||
|
virtual int canPause();
|
||||||
void shutdown();
|
void shutdown();
|
||||||
void render();
|
void render();
|
||||||
void think(int _frames);
|
void think(int _frames);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue