2021-07-17 14:27:11 +00:00
|
|
|
#include "th04/score.h"
|
|
|
|
|
2022-03-10 10:59:13 +00:00
|
|
|
extern score_lebcd_t score;
|
|
|
|
extern score_lebcd_t hiscore;
|
|
|
|
|
2021-07-22 18:48:47 +00:00
|
|
|
static const unsigned int STAGE_GRAZE_CAP = 999;
|
|
|
|
|
2021-07-03 13:56:37 +00:00
|
|
|
extern unsigned int graze_score; // Set per difficulty.
|
|
|
|
extern unsigned int stage_graze; // Reset to 0 when moving to a new stage.
|
|
|
|
|
2021-07-17 14:27:11 +00:00
|
|
|
extern unsigned char extends_gained;
|
|
|
|
extern unsigned long score_delta;
|
|
|
|
|
[Maintenance] Remove `extern "C"` from more areas of code
Much more than usual, now that we've got a snappy build system! This
commit covers
• All .PI functions across all games
• TH02's High Score entry functions
• TH03's shots_update() and shots_render()
• All functions declared in `th04/op/op.hpp`
• TH04/TH05's bb_txt_put_8_raw(), bullet_template_clip(),
player_pos_update_and_clamp(), score_update_and_render(), and
slowdown_frame_delay()
• TH05's reimu_stars_update_and_render(), score_delta_commit(),
stage2_invalidate(), stage2_update(), and space_window_set()
Part of P0284, funded by [Anonymous] and Blue Bolt.
2024-05-23 20:04:35 +00:00
|
|
|
void near score_update_and_render(void);
|
2021-07-17 14:27:11 +00:00
|
|
|
|
2023-06-01 22:33:33 +00:00
|
|
|
// Adds the entire [score_delta] at once to the current score.
|
2021-07-17 14:27:11 +00:00
|
|
|
void pascal score_delta_commit(void);
|