-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.h
47 lines (38 loc) · 865 Bytes
/
game.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef __GAME_H__
#define __GAME_H__
/** @brief End game result
*/
typedef enum GameEndResult
{
ResultNone,
ResultGameOver,
ResultDemoOver
} GameEndResult;
/** @brief Current game state
*/
typedef struct
{
int Score;
GameEndResult GameEnd;
} CurrentState;
/** @brief Loads and initializes assets that are present through the whole game
*/
void GameInitializeImmortal();
/** @brief Loads and initializes assets that are present only in levels
* @param coop Number of players present in game
* @param endless Game mode
*/
void GameInitializeMortal(bool coop, bool endless);
/** @brief Dispose of game assets
*/
void GameDisposeMortal();
/** @brief Game update tick
*/
void GameUpdateTick(CurrentState * state);
/** @brief Draw score to global hud
*/
void GameScoreDraw();
/** @brief Draw game screen
*/
void GameDraw();
#endif