-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Maintenance] Reorganize gaiji definitions
Part of P0089, funded by [Anonymous] and Blue Bolt.
- Loading branch information
Showing
14 changed files
with
169 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// 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 | ||
// offset, as it may suggest that this also works for M and N (which it | ||
// doesn't). This was fixed in later games. | ||
#if (GAME == 2) | ||
# define gb_MN_BUG gb_N_, gb_M_ | ||
#else | ||
# define gb_MN_BUG gb_M_, gb_N_ | ||
#endif | ||
|
||
#define gaiji_boldfont(start) \ | ||
gb_0_ = start, \ | ||
gb_1_, \ | ||
gb_2_, \ | ||
gb_3_, \ | ||
gb_4_, \ | ||
gb_5_, \ | ||
gb_6_, \ | ||
gb_7_, \ | ||
gb_8_, \ | ||
gb_9_, \ | ||
gb_A_, \ | ||
gb_B_, \ | ||
gb_C_, \ | ||
gb_D_, \ | ||
gb_E_, \ | ||
gb_F_, \ | ||
gb_G_, \ | ||
gb_H_, \ | ||
gb_I_, \ | ||
gb_J_, \ | ||
gb_K_, \ | ||
gb_L_, \ | ||
gb_MN_BUG, \ | ||
gb_O_, \ | ||
gb_P_, \ | ||
gb_Q_, \ | ||
gb_R_, \ | ||
gb_S_, \ | ||
gb_T_, \ | ||
gb_U_, \ | ||
gb_V_, \ | ||
gb_W_, \ | ||
gb_X_, \ | ||
gb_Y_, \ | ||
gb_Z_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// ReC98 | ||
// ----- | ||
// Gaiji available to TH02 | ||
|
||
#include "th02/gaiji/boldfont.h" | ||
|
||
typedef enum { | ||
gs_YINYANG = 0x02, // ☯ | ||
gs_BOMB, // ◉? ⦿? 🎯? 🖸? Or simply 💣? | ||
|
||
gaiji_boldfont(0xA0), | ||
|
||
gb_SP = 0xCF, | ||
gs_BULLET = 0xDA, // • | ||
gs_PERIOD, // . | ||
gs_EXCLAMATION, // ! | ||
gs_QUESTION, // ? | ||
gs_ELLIPSIS, // … | ||
gs_COPYRIGHT, // © | ||
gs_HEART, // 🎔 | ||
gs_SKULL, // 💀 | ||
gs_GHOST, // 👻 | ||
gs_SIDDHAM_HAM, // Siddhaṃ seed syllable HĀṂ (I don't even) | ||
gs_SPACE, // ␠ | ||
gs_ARROW_LEFT, // ← | ||
gs_ARROW_RIGHT, // → | ||
gs_END, // "End" | ||
|
||
// Unused 32x16 rank sprites | ||
gs_EA, gs_SY, // "Ea", "sy" | ||
gs_NOR, gs_MAL, // "Nor, "mal" | ||
gs_HA, gs_RD, // "Ha, "rd" | ||
gs_LUN, gs_ATIC, // "Lun", "atic" | ||
|
||
gs_ALL, // "All" | ||
} gaiji_th02_t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include "th03/gaiji/bar.h" | ||
|
||
// A completely filled, 128-pixel bar, stored in 8 consecutive gaiji | ||
// characters. TH05 has *MAX♡ drawn on the last three. | ||
#define G_BAR_MAX(sprite) | ||
#define gaiji_bar_max(start) \ | ||
g_BAR_MAX_0 = start, \ | ||
g_BAR_MAX_1, \ | ||
g_BAR_MAX_2, \ | ||
g_BAR_MAX_3, \ | ||
g_BAR_MAX_4, \ | ||
g_BAR_MAX_5, \ | ||
g_BAR_MAX_6, \ | ||
g_BAR_MAX_7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
include th03/gaiji/bar.inc | ||
|
||
g_BAR_MAX = 030h | ||
g_BAR_MAX_0 = 030h | ||
g_BAR_MAX_1 = 031h | ||
g_BAR_MAX_2 = 032h | ||
g_BAR_MAX_3 = 033h | ||
g_BAR_MAX_4 = 034h | ||
g_BAR_MAX_5 = 035h | ||
g_BAR_MAX_6 = 036h | ||
g_BAR_MAX_7 = 037h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// ReC98 | ||
// ----- | ||
// Gaiji available to TH04 | ||
|
||
#include "th02/gaiji/boldfont.h" | ||
#include "th04/gaiji/bar.h" | ||
|
||
typedef enum { | ||
g_EMPTY = 0x02, | ||
gaiji_bar(0x20), | ||
gaiji_bar_max(0x30), | ||
gaiji_boldfont(0xA0), | ||
gs_DOT = 0xC4, | ||
gs_ALL = 0xE9, | ||
g_HISCORE_STAGE_EMPTY = 0xEF, | ||
g_NONE = 0xFF, | ||
} gaiji_th04_t; |
Oops, something went wrong.