This commit is contained in:
parent
40cddf5885
commit
a1b011dfaa
16 changed files with 214 additions and 314 deletions
|
@ -1,6 +1,6 @@
|
|||
/*=========================================================================
|
||||
|
||||
gameover.h
|
||||
party.h
|
||||
|
||||
Author: PKG
|
||||
Created:
|
||||
|
@ -11,8 +11,8 @@
|
|||
|
||||
===========================================================================*/
|
||||
|
||||
#ifndef __BACKEND_GAMEOVER_H__
|
||||
#define __BACKEND_GAMEOVER_H__
|
||||
#ifndef __BACKEND_PARTY_H__
|
||||
#define __BACKEND_PARTY_H__
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Includes
|
||||
|
@ -34,7 +34,7 @@
|
|||
Structure defintions
|
||||
-------------------- */
|
||||
|
||||
class CGameOverScene: public CScene
|
||||
class CPartyScene: public CScene
|
||||
{
|
||||
public:
|
||||
void init();
|
||||
|
@ -42,52 +42,11 @@ public:
|
|||
void render();
|
||||
void think(int _frames);
|
||||
int readyToShutdown();
|
||||
char *getSceneName() {return"GameOver/Continue";}
|
||||
char *getSceneName() {return"Party";}
|
||||
|
||||
|
||||
private:
|
||||
typedef enum
|
||||
{
|
||||
STATE__CONTINUE,
|
||||
STATE__CONTINUE_TIMED_OUT,
|
||||
STATE__GAME_OVER,
|
||||
STATE__EXITING_TO_GAME,
|
||||
STATE__EXITING_TO_FRONT_END,
|
||||
} GAMEOVER_STATE;
|
||||
|
||||
|
||||
// Continue
|
||||
enum
|
||||
{
|
||||
CONTINUE_STROBE_SPEED=75,
|
||||
CONTINUE_FONT_SCALE=100,
|
||||
CONTINUE_FONT_BASE_SIZE=400,
|
||||
COUNTDOWN_TIME_SECOND_LENGTH=100, // Each 'second' on the countdown lasts this long
|
||||
};
|
||||
void initContinue();
|
||||
void thinkContinue(int _frames);
|
||||
void renderContinue();
|
||||
int m_continueFontOffset;
|
||||
int m_continueFontSin;
|
||||
int m_continueTimer;
|
||||
|
||||
// Game over
|
||||
enum
|
||||
{
|
||||
GAMEOVER_FONT_SCALE=511,
|
||||
GAMEOVER_FONT_GROWSPEED=150,
|
||||
GAMEOVER_FONT_GROWSPACING=900,
|
||||
GAMEOVER_FONT_MAXSIN=1500,
|
||||
};
|
||||
void initGameOver();
|
||||
void thinkGameOver(int _frames);
|
||||
void renderGameOver();
|
||||
int m_gameOverTimer;
|
||||
int m_finishedGrowingText;
|
||||
|
||||
|
||||
GAMEOVER_STATE m_state;
|
||||
class ScalableFontBank *m_font;
|
||||
class SpriteBank *m_sprites;
|
||||
int m_readyToExit;
|
||||
unsigned char *m_image;
|
||||
|
||||
|
@ -98,7 +57,7 @@ private:
|
|||
Globals
|
||||
------- */
|
||||
|
||||
extern CGameOverScene GameOverScene;
|
||||
extern CPartyScene PartyScene;
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
|
@ -107,7 +66,7 @@ extern CGameOverScene GameOverScene;
|
|||
|
||||
/*---------------------------------------------------------------------- */
|
||||
|
||||
#endif /* __BACKEND_GAMEOVER_H__ */
|
||||
#endif /* __BACKEND_PARTY_H__ */
|
||||
|
||||
/*===========================================================================
|
||||
end */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue