This commit is contained in:
parent
df0a744556
commit
80b14c0704
10 changed files with 71 additions and 64 deletions
|
@ -28,9 +28,12 @@
|
|||
|
||||
|
||||
|
||||
int ZPos=6500;
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
FontBank *CGameScene::s_genericFont;
|
||||
FontBank *CGameScene::s_genericFont;
|
||||
MATRIX CGameScene::CamMtx;
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
|
@ -48,6 +51,9 @@ void CGameScene::init()
|
|||
Player.init();
|
||||
CAnimDB::LoadAnims();
|
||||
|
||||
SetIdentNoTrans(&CamMtx);
|
||||
CamMtx.t[2]=ZPos;
|
||||
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -62,6 +68,8 @@ void CGameScene::shutdown()
|
|||
/*****************************************************************************/
|
||||
void CGameScene::render()
|
||||
{
|
||||
CamMtx.t[2]=ZPos; // Temp
|
||||
|
||||
m_conversation.render();
|
||||
Player.render();
|
||||
Level.render();
|
||||
|
|
|
@ -19,17 +19,18 @@ class FontBank;
|
|||
class CGameScene : public CScene
|
||||
{
|
||||
public:
|
||||
CGameScene() {;}
|
||||
virtual ~CGameScene() {;}
|
||||
CGameScene() {;}
|
||||
virtual ~CGameScene() {;}
|
||||
|
||||
|
||||
void init();
|
||||
void shutdown();
|
||||
void render();
|
||||
void think(int _frames);
|
||||
int readyToShutdown();
|
||||
char *getSceneName() {return "Game";}
|
||||
void init();
|
||||
void shutdown();
|
||||
void render();
|
||||
void think(int _frames);
|
||||
int readyToShutdown();
|
||||
char *getSceneName() {return "Game";}
|
||||
|
||||
static MATRIX *GetCamMtx() {return(&CamMtx);}
|
||||
|
||||
private:
|
||||
|
||||
|
@ -37,6 +38,7 @@ private:
|
|||
CPlayer Player;
|
||||
CConversation m_conversation;
|
||||
static FontBank *s_genericFont;
|
||||
static MATRIX CamMtx;
|
||||
//static class SpriteBank *s_sprites; <-- Was causing compile error, sorry
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue