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-09-04 15:15:22 +00:00
|
|
|
typedef enum GameScreen { TITLE = 0, GAMEPLAY, GAMEOVER, CREDITS, OPTIONS, ENDING, LEVELSEL } GameScreen;
|
|
|
|
typedef enum Levels { LEVEL1 = 0, LEVEL2, LEVEL3 } Levels;
|
2022-06-12 17:49:42 +00:00
|
|
|
|
|
|
|
extern GameScreen currentScreen;
|
2022-09-04 15:15:22 +00:00
|
|
|
extern Levels level;
|
2022-10-02 19:58:18 +00:00
|
|
|
extern int nextlevel;
|
|
|
|
extern bool levelunlocked[3];
|
|
|
|
|
2022-06-12 17:49:42 +00:00
|
|
|
|
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-09-04 15:15:22 +00:00
|
|
|
void InitLevelSelScreen(void);
|
|
|
|
void UpdateLevelSelScreen(void);
|
|
|
|
void DrawLevelSelScreen(void);
|
|
|
|
void UnloadLevelSelScreen(void);
|
|
|
|
int FinishLevelSelScreen(void);
|
|
|
|
|
2022-06-12 17:49:42 +00:00
|
|
|
#endif
|