2024-05-25 18:31:09 +00:00
|
|
|
#include "pc98.h"
|
|
|
|
|
2019-09-16 11:01:53 +00:00
|
|
|
#define BB_SIZE 2048
|
|
|
|
|
2021-06-14 07:32:13 +00:00
|
|
|
// Bitmap format, storing 1-bit values for 8 tiles in one byte.
|
|
|
|
typedef uint8_t bb_tiles8_t;
|
|
|
|
|
2022-03-19 18:22:51 +00:00
|
|
|
// Blocky boss entrance animations
|
|
|
|
// -------------------------------
|
2020-04-20 11:06:04 +00:00
|
|
|
|
2022-03-19 18:22:51 +00:00
|
|
|
extern bb_tiles8_t __seg *bb_boss_seg;
|
|
|
|
|
|
|
|
// Loads the .BB file with the given name into memory, and sets [bb_boss_seg]
|
|
|
|
// to the newly allocated segment. Does not attempt to free [bb_boss_seg], and
|
2022-06-26 09:32:25 +00:00
|
|
|
// will leak memory if it is not a nullptr.
|
2022-03-19 18:22:51 +00:00
|
|
|
void pascal near bb_boss_load(const char far *fn);
|
|
|
|
|
2022-06-26 09:32:25 +00:00
|
|
|
// Frees any previously allocated [bb_boss_seg].
|
2022-03-19 18:22:51 +00:00
|
|
|
#if (GAME == 5)
|
|
|
|
void near bb_boss_free(void);
|
|
|
|
#else
|
|
|
|
void far bb_boss_free(void);
|
|
|
|
#endif
|
|
|
|
// -------------------------------
|
2021-06-16 04:19:15 +00:00
|
|
|
|
2020-04-20 11:06:04 +00:00
|
|
|
/// Text dissolve circles
|
|
|
|
/// ---------------------
|
2022-08-04 13:29:34 +00:00
|
|
|
|
2020-04-20 11:06:04 +00:00
|
|
|
#define BB_TXT_W 32
|
|
|
|
#define BB_TXT_H 32
|
2020-08-05 21:04:47 +00:00
|
|
|
#define BB_TXT_VRAM_W (BB_TXT_W / BYTE_DOTS)
|
2020-04-20 11:06:04 +00:00
|
|
|
|
2020-05-01 10:19:09 +00:00
|
|
|
#define BB_TXT_IN_SPRITE 16
|
|
|
|
#define BB_TXT_IN_CELS 8
|
|
|
|
#define BB_TXT_OUT_SPRITE 0
|
|
|
|
#define BB_TXT_OUT_CELS 16
|
|
|
|
|
2020-04-20 11:06:04 +00:00
|
|
|
// Puts the given TXT*.BB sprite at (⌊left/8⌋*8, top). Assumptions:
|
2023-04-17 01:53:29 +00:00
|
|
|
// • ES is already set to the beginning of a VRAM segment
|
2020-04-20 11:06:04 +00:00
|
|
|
// • The GRCG is active, and set to the intended color
|
|
|
|
#define bb_txt_put_8(left, top, sprite) \
|
|
|
|
_CX = sprite; \
|
|
|
|
bb_txt_put_8_raw(left, top);
|
2020-08-20 19:59:45 +00:00
|
|
|
void __fastcall near bb_txt_put_8_raw(uscreen_x_t left, uvram_y_t top);
|
2020-04-20 11:06:04 +00:00
|
|
|
/// ---------------------
|