[Maintenance] [th03] Adopt the PlayfieldPoint subpixel type from TH02/TH04/TH05

Makes sense for this game as well, even if it can only serve
documentary purpose due to it not knowing which playfield it's on.

Part of P0182, funded by Lmocinemod and [Anonymous].
This commit is contained in:
nmlgc 2022-02-03 01:49:03 +01:00
parent 313450f00a
commit 70cbf4bbe1
3 changed files with 6 additions and 2 deletions

View File

@ -30,7 +30,7 @@ extern farfunc_t_near chargeshot_render[PLAYER_COUNT];
// ------------
typedef struct {
SPPoint center;
PlayfieldPoint center;
bool is_hit;
uint8_t unused_1;
unsigned char invincibility_time;

View File

@ -24,7 +24,7 @@ enum shot_active_t {
struct shotpair_t {
char flag;
char unused_1;
SPPoint topleft;
PlayfieldPoint topleft;
Subpixel velocity_y;
unsigned int so_pid;
unsigned char so_anim;

View File

@ -19,6 +19,10 @@
#define PLAYFIELD_VRAM_W_BORDERED (PLAYFIELD_W_BORDERED / BYTE_DOTS)
// A subpixel point within one of the playfields. No conversion methods to
// screen space here, since the instance doesn't know the playfield it is on.
typedef SPPoint PlayfieldPoint;
extern screen_x_t playfield_fg_shift_x[PLAYFIELD_COUNT];
screen_x_t pascal playfield_fg_x_to_screen(Subpixel x, unsigned int pid);