2020-08-21 18:13:08 +00:00
|
|
|
static const pixel_t PLAYER_W = 32;
|
|
|
|
static const pixel_t PLAYER_H = 32;
|
2020-06-05 19:45:55 +00:00
|
|
|
|
2020-10-10 13:07:23 +00:00
|
|
|
static const pixel_t PLAYER_ANIM_W = 48;
|
|
|
|
static const pixel_t PLAYER_ANIM_FORWARD_H = 48;
|
|
|
|
|
2020-08-20 19:59:45 +00:00
|
|
|
static const screen_x_t PLAYER_LEFT_MIN = (PLAYFIELD_LEFT);
|
|
|
|
static const screen_x_t PLAYER_LEFT_MAX = (PLAYFIELD_RIGHT - PLAYER_W);
|
2020-06-05 19:45:55 +00:00
|
|
|
|
2020-08-25 18:29:24 +00:00
|
|
|
static const screen_x_t PLAYER_LEFT_START = (PLAYFIELD_CENTER_X - (PLAYER_W / 2));
|
2020-06-05 19:45:55 +00:00
|
|
|
|
2020-08-20 19:59:45 +00:00
|
|
|
extern screen_x_t player_left;
|
|
|
|
static const screen_y_t player_top = (PLAYFIELD_BOTTOM - PLAYER_H);
|
|
|
|
static const screen_y_t player_center_y = (PLAYFIELD_BOTTOM - (PLAYER_H / 2));
|
2020-06-05 19:45:55 +00:00
|
|
|
|
2020-10-10 13:07:23 +00:00
|
|
|
inline screen_y_t player_anim_left(void) {
|
|
|
|
return (player_left - ((PLAYER_ANIM_W - PLAYER_W) / 2));
|
|
|
|
}
|
|
|
|
|
|
|
|
inline screen_y_t player_anim_forward_top(void) {
|
|
|
|
return (PLAYFIELD_BOTTOM - PLAYER_ANIM_FORWARD_H);
|
|
|
|
}
|
|
|
|
|
2020-06-05 19:45:55 +00:00
|
|
|
void player_move_and_clamp(int delta);
|
2020-09-26 12:37:25 +00:00
|
|
|
void invincibility_sprites_update_and_render(bool16 invincible);
|
2020-07-03 20:19:17 +00:00
|
|
|
|
2020-12-11 20:40:40 +00:00
|
|
|
extern bool player_deflecting;
|
|
|
|
extern bool player_sliding;
|
2020-07-06 21:51:10 +00:00
|
|
|
extern bool16 player_invincible;
|
2020-07-16 19:28:52 +00:00
|
|
|
|
2020-07-23 19:20:24 +00:00
|
|
|
extern int lives;
|
2020-07-16 19:28:52 +00:00
|
|
|
extern int cardcombo_cur;
|
|
|
|
extern int cardcombo_max;
|