2020-07-23 19:20:24 +00:00
|
|
|
#include "th01/common.h"
|
2020-07-15 11:05:13 +00:00
|
|
|
#include "th01/score.h"
|
|
|
|
|
|
|
|
#define last_for_quarters(base, quarters) \
|
|
|
|
((base + ((quarters + 3) / 4)) - 1)
|
|
|
|
|
2020-07-16 19:28:52 +00:00
|
|
|
static const int CARDCOMBO_DIGITS = 2;
|
|
|
|
|
2020-07-15 11:05:13 +00:00
|
|
|
typedef enum {
|
2020-07-22 12:32:29 +00:00
|
|
|
PTN_SLOT_STG = 0, // stg(_b).ptn
|
|
|
|
PTN_SLOT_MIKO = 1, // miko.ptn
|
2020-07-15 11:05:13 +00:00
|
|
|
PTN_SLOT_BG_HUD = 5,
|
2020-07-22 12:32:29 +00:00
|
|
|
PTN_SLOT_NUMB = 7, // numb.ptn
|
2020-07-15 11:05:13 +00:00
|
|
|
} main_ptn_slot_t;
|
|
|
|
|
|
|
|
typedef enum {
|
2020-07-22 12:32:29 +00:00
|
|
|
// stg(_b).ptn
|
|
|
|
// -----------
|
|
|
|
PTN_HUD = PTN_ID(PTN_SLOT_STG, 0),
|
|
|
|
PTN_SHOT,
|
|
|
|
PTN_BLAST, // ???
|
|
|
|
PTN_ORB,
|
|
|
|
// -----------
|
|
|
|
|
2020-07-15 11:05:13 +00:00
|
|
|
// HUD (snapped backgrounds)
|
|
|
|
// -------------------------
|
2020-07-23 19:20:24 +00:00
|
|
|
// The usage code doesn't really cap either of these, though...
|
|
|
|
PTN_BG_LIVES = PTN_ID(PTN_SLOT_BG_HUD, 0),
|
|
|
|
PTN_BG_LIVES_last = last_for_quarters(PTN_BG_LIVES, LIVES_MAX),
|
2020-07-26 12:59:40 +00:00
|
|
|
PTN_BG_STAGE,
|
|
|
|
PTN_BG_STAGE_last, // But the original game onlys need a single quarter?
|
|
|
|
PTN_BG_BOMBS,
|
2020-07-23 19:20:24 +00:00
|
|
|
PTN_BG_BOMBS_last = last_for_quarters(PTN_BG_BOMBS, BOMBS_MAX),
|
|
|
|
|
|
|
|
PTN_BG_CUR_SCORE,
|
2020-07-17 11:14:54 +00:00
|
|
|
PTN_BG_CUR_SCORE_last = last_for_quarters(PTN_BG_CUR_SCORE, SCORE_DIGITS),
|
|
|
|
PTN_BG_CUR_CARDCOMBO,
|
|
|
|
|
2020-07-15 11:05:13 +00:00
|
|
|
PTN_BG_MAX_SCORE = PTN_ID(PTN_SLOT_BG_HUD, 10),
|
|
|
|
PTN_BG_MAX_SCORE_last = last_for_quarters(PTN_BG_MAX_SCORE, SCORE_DIGITS),
|
2020-07-16 19:28:52 +00:00
|
|
|
PTN_BG_MAX_CARDCOMBO,
|
2020-07-15 11:05:13 +00:00
|
|
|
// -------------------------
|
|
|
|
} main_ptn_id_t;
|