mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-26 20:00:30 +00:00
d8f2e9abc6
* ActorContext * frameadvance * SfxSource * GameOverContext * RoomContext * TransitionActorContext * fix bss * Move PlayState * Move play functions to new header * SAC_ENABLE * no longer needed * SAC_ENABLE again * z_demo being silly * comment * format headers * fix retail bss * actually fix bss * Cutscene_ProcessScript comment * bss again * Update src/code/z_demo.c Co-authored-by: cadmic <cadmic24@gmail.com> * rename to frame_advance and remove it from z64.h * move macros too * review * Rename SequenceContext to SceneSequences --------- Co-authored-by: cadmic <cadmic24@gmail.com>
30 lines
1.1 KiB
C
30 lines
1.1 KiB
C
#ifndef Z64GAME_OVER_H
|
|
#define Z64GAME_OVER_H
|
|
|
|
#include "ultra64.h"
|
|
|
|
struct PlayState;
|
|
|
|
typedef enum GameOverState {
|
|
/* 00 */ GAMEOVER_INACTIVE,
|
|
/* 01 */ GAMEOVER_DEATH_START,
|
|
/* 02 */ GAMEOVER_DEATH_WAIT_GROUND, // wait for link to fall and hit the ground
|
|
/* 03 */ GAMEOVER_DEATH_DELAY_MENU, // wait for 1 second before showing the game over menu
|
|
/* 04 */ GAMEOVER_DEATH_MENU, // do nothing while kaleidoscope handles the game over menu
|
|
/* 20 */ GAMEOVER_REVIVE_START = 20,
|
|
/* 21 */ GAMEOVER_REVIVE_RUMBLE,
|
|
/* 22 */ GAMEOVER_REVIVE_WAIT_GROUND, // wait for link to fall and hit the ground
|
|
/* 23 */ GAMEOVER_REVIVE_WAIT_FAIRY, // wait for the fairy to rise all the way up out of links body
|
|
/* 24 */ GAMEOVER_REVIVE_FADE_OUT // fade out the game over lights as link is revived and gets back up
|
|
} GameOverState;
|
|
|
|
typedef struct GameOverContext {
|
|
/* 0x00 */ u16 state;
|
|
} GameOverContext; // size = 0x2
|
|
|
|
void GameOver_Init(struct PlayState* play);
|
|
void GameOver_FadeInLights(struct PlayState* play);
|
|
void GameOver_Update(struct PlayState* play);
|
|
|
|
#endif
|