crocparty/game/game_player.h

24 lines
580 B
C
Raw Permalink Normal View History

2024-02-28 05:07:15 +00:00
#ifndef GAME_PLAYER_H
#define GAME_PLAYER_H
2024-02-29 20:08:50 +00:00
typedef struct {
sys_i32 n_cake;
sys_i32 n_dollars;
} game_player_collectibles_t;
extern game_player_collectibles_t game_player_collectibles;
2024-02-29 22:31:44 +00:00
typedef enum {
GAME_PLAYER_PHASE_CROC = 0,
GAME_PLAYER_PHASE_CHICKEN = 1,
} game_player_phase_t;
extern game_player_phase_t game_player_phase;
2024-02-28 05:07:15 +00:00
void game_player_init();
2024-02-29 04:48:22 +00:00
void game_player_update(bool* allow_input);
2024-02-29 20:08:50 +00:00
void game_player_get_center(sys_i32* x, sys_i32* y);
2024-02-28 20:54:59 +00:00
void game_player_set_camera();
2024-02-28 05:07:15 +00:00
void game_player_draw();
2024-02-29 20:08:50 +00:00
void game_player_draw_hud();
2024-02-29 01:36:06 +00:00
2024-02-28 05:07:15 +00:00
#endif // GAME_PLAYER_H