139#define SCENE_STACK_MAX 8
unsigned char u8
8-bit unsigned integer (0 to 255)
Definition types.h:47
void sceneRun(const Scene *initial)
Run the scene stack with initial at the bottom. Never returns.
u8 scenePush(const Scene *next)
Push a scene onto the stack. Suspends the current top.
u8 scenePop(void)
Pop the top scene. Resumes the scene below.
void sceneReplace(const Scene *next)
Replace the top scene with another, at any depth — the bottom one included.
A single scene's callbacks.
Definition scene.h:148
void(* init)(void)
Called each time the scene is pushed onto the stack (not only the first; see the Behaviour section).
Definition scene.h:158
void(* update)(void)
Called every VBlank while the scene is on top of the stack.
Definition scene.h:173