2022-06-12 17:49:42 +00:00
|
|
|
/*
|
|
|
|
- Avoid ~ a game by Canneddonuts
|
|
|
|
- Filename ~ Screens.h
|
|
|
|
- Author ~ Return0ne
|
|
|
|
- 2022
|
|
|
|
- *no license*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SCREENS_HEADER
|
|
|
|
#define SCREENS_HEADER
|
|
|
|
|
2022-07-28 16:02:47 +00:00
|
|
|
typedef enum GameScreen { TITLE = 0, GAMEPLAY, GAMEOVER, CREDITS, OPTIONS, ENDING } GameScreen;
|
2022-06-12 17:49:42 +00:00
|
|
|
|
|
|
|
extern GameScreen currentScreen;
|
|
|
|
|
2022-06-17 02:17:26 +00:00
|
|
|
void InitTitleScreen(void);
|
2022-06-12 17:49:42 +00:00
|
|
|
void UpdateTitleScreen(void);
|
|
|
|
void DrawTitleScreen(void);
|
2022-06-17 02:17:26 +00:00
|
|
|
void UnloadTitleScreen(void);
|
2022-07-19 15:04:05 +00:00
|
|
|
int FinishTitleScreen(void);
|
2022-06-12 17:49:42 +00:00
|
|
|
|
|
|
|
void InitGameplayScreen(void);
|
|
|
|
void UpdateGameplayScreen(void);
|
|
|
|
void DrawGameplayScreen(void);
|
|
|
|
void UnloadGameplayScreen(void);
|
2022-07-15 16:59:37 +00:00
|
|
|
void LoadGamplayScreen(void);
|
2022-07-19 15:04:05 +00:00
|
|
|
int FinishGameplayScreen(void);
|
2022-07-15 16:59:37 +00:00
|
|
|
|
2022-07-19 15:04:05 +00:00
|
|
|
void InitCreditsScreen(void);
|
2022-06-12 17:49:42 +00:00
|
|
|
void UpdateCreditsScreen(void);
|
|
|
|
void DrawCreditsScreen(void);
|
2022-07-19 15:04:05 +00:00
|
|
|
void UnloadCreditsScreen(void);
|
|
|
|
int FinishCreditsScreen(void);
|
2022-06-12 17:49:42 +00:00
|
|
|
|
|
|
|
void InitGameoverScreen(void);
|
|
|
|
void UpdateGameoverScreen(void);
|
|
|
|
void DrawGameoverScreen(void);
|
2022-07-19 15:04:05 +00:00
|
|
|
void UnloadGameoverScreen(void);
|
|
|
|
int FinishGameoverScreen(void);
|
|
|
|
|
|
|
|
void InitOptionsScreen(void);
|
|
|
|
void UpdateOptionsScreen(void);
|
|
|
|
void DrawOptionsScreen(void);
|
|
|
|
void UnloadOptionsScreen(void);
|
|
|
|
int FinishOptionsScreen(void);
|
2022-06-12 17:49:42 +00:00
|
|
|
|
2022-07-28 16:02:47 +00:00
|
|
|
void InitEndingScreen(void);
|
|
|
|
void UpdateEndingScreen(void);
|
|
|
|
void DrawEndingScreen(void);
|
|
|
|
void UnloadEndingScreen(void);
|
|
|
|
int FinishEndingScreen(void);
|
|
|
|
|
2022-06-12 17:49:42 +00:00
|
|
|
#endif
|