[Maintenance] Gaiji: Move variable-width bars to TH02

Part of P0237, funded by Yanga.
This commit is contained in:
nmlgc 2023-03-25 01:31:26 +01:00
parent 1158e028ff
commit ea59e023d0
4 changed files with 21 additions and 22 deletions

View File

@ -1,6 +1,27 @@
/// Gaiji introduced in TH02, and shared with later games
/// -----------------------------------------------------
// Enemy health / dream / power bars, with the given width in pixels.
#define gaiji_bar(start) \
g_BAR_01W = start, \
g_BAR_02W, \
g_BAR_03W, \
g_BAR_04W, \
g_BAR_05W, \
g_BAR_06W, \
g_BAR_07W, \
g_BAR_08W, \
g_BAR_09W, \
g_BAR_10W, \
g_BAR_11W, \
g_BAR_12W, \
g_BAR_13W, \
g_BAR_14W, \
g_BAR_15W, \
g_BAR_16W
#define BAR_GAIJI_MAX 16
// In TH02, ZUN messed up and swapped M and N in MIKOFT.BFT for both regular
// and bold fonts. Therefore, other code shouldn't really use the
// straightforward solution of just adding char literals to a defined start

View File

@ -1,20 +0,0 @@
// Enemy health / dream / power bars, with the given width in pixels.
#define gaiji_bar(start) \
g_BAR_01W = start, \
g_BAR_02W, \
g_BAR_03W, \
g_BAR_04W, \
g_BAR_05W, \
g_BAR_06W, \
g_BAR_07W, \
g_BAR_08W, \
g_BAR_09W, \
g_BAR_10W, \
g_BAR_11W, \
g_BAR_12W, \
g_BAR_13W, \
g_BAR_14W, \
g_BAR_15W, \
g_BAR_16W
#define BAR_GAIJI_MAX 16

View File

@ -3,7 +3,6 @@
// Gaiji available to TH03
#include "th02/gaiji/from_2.h"
#include "th03/gaiji/bar.h"
typedef enum {
// 1P/2P selection cursor

View File

@ -3,7 +3,6 @@
// Gaiji available to TH04 and TH05
#include "th02/gaiji/from_2.h"
#include "th03/gaiji/bar.h"
#define OVERLAY_FADE_CELS 8
#define RETURN_KEY_CELS 4