[Reverse-engineering] [th04/th05] Boss hitboxes

Funded by -Tom-.
This commit is contained in:
nmlgc 2019-03-01 11:07:40 +01:00
parent 062e775f41
commit 08ffcb0737
3 changed files with 41 additions and 52 deletions

View File

@ -0,0 +1,3 @@
; In 1/16th-pixel units.
public _boss_hitbox_radius
_boss_hitbox_radius Point <?>

View File

@ -36387,8 +36387,8 @@ sub_1DFEF proc far
setfarfp _boss_update_func, sub_19AA3
mov _boss_fg_render_func, offset sub_1196B
mov _boss_sprite_cur, 128
mov word_2D030, 180h
mov word_2D032, 100h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (16 shl 4)
mov _boss_backdrop_colorfill, offset sub_EDE2
push ds
push offset aSt00_bmt ; "st00.bmt"
@ -36431,8 +36431,8 @@ sub_1E0B3 proc far
setfarfp _boss_update_func, sub_1915D
mov _boss_fg_render_func, offset sub_11793
mov _boss_sprite_cur, 0
mov word_2D030, 180h
mov word_2D032, 180h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (24 shl 4)
mov _boss_backdrop_colorfill, offset sub_EA70
push ds
push offset aSt01_bmt ; "st01.bmt"
@ -36477,8 +36477,8 @@ sub_1E186 proc far
setfarfp _boss_update_func, sub_1C2E5
mov _boss_fg_render_func, offset sub_11E12
mov _boss_sprite_cur, 134
mov word_2D030, 180h
mov word_2D032, 180h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (24 shl 4)
mov _boss_backdrop_colorfill, offset sub_BECC
push ds
push offset aSt02_bmt ; "st02.bmt"
@ -36558,8 +36558,8 @@ loc_1E359:
loc_1E371:
mov _boss_sprite_cur, 128
mov word_2D030, 180h
mov word_2D032, 180h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (24 shl 4)
mov _boss_backdrop_colorfill, offset sub_BEDA
push ds
push offset aSt03_bmt ; "st03.bmt"
@ -36607,8 +36607,8 @@ sub_1E3C2 proc far
setfarfp _boss_update_func, sub_16610
mov _boss_fg_render_func, offset sub_E8A3
mov _boss_sprite_cur, 128
mov word_2D030, 1A0h
mov word_2D032, 1A0h
mov _boss_hitbox_radius.x, (26 shl 4)
mov _boss_hitbox_radius.y, (26 shl 4)
mov _boss_backdrop_colorfill, offset sub_BFF8
call _cdg_load_single_noalpha pascal, 16, ds, offset aSt04bk_cdg, 0
call bb_stage_load pascal, ds, offset aSt04_bb
@ -36646,8 +36646,8 @@ sub_1E47C proc far
setfarfp _boss_update_func, sub_1B47E
mov _boss_fg_render_func, offset sub_11C1A
mov _boss_sprite_cur, 128
mov word_2D030, 180h
mov word_2D032, 300h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (48 shl 4)
call bb_stage_load pascal, ds, offset aSt05_bb
mov _stage_render, offset nullsub_1
mov _stage_invalidate, offset nullsub_1
@ -36692,8 +36692,8 @@ sub_1E518 proc far
setfarfp _boss_update_func, sub_186EB
mov _boss_fg_render_func, offset sub_115B6
mov _boss_sprite_cur, 128
mov word_2D030, 180h
mov word_2D032, 300h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (48 shl 4)
mov _boss_backdrop_colorfill, offset sub_C148
mov byte_2D01E, 0
call _cdg_load_single_noalpha pascal, 16, ds, offset aSt06bk_cdg, 0
@ -36785,10 +36785,7 @@ sub_1E64E proc near
push bp
mov bp, sp
inc word_2671A
push word_2D030
push word_2D032
push 4
call sub_1E5D8
call sub_1E5D8 pascal, _boss_hitbox_radius.x, _boss_hitbox_radius.y, 4
mov byte_2671C, al
mov ah, 0
sub _boss_hp, ax
@ -36815,10 +36812,7 @@ sub_1E67C proc near
push bp
mov bp, sp
inc word_2671A
push word_2D030
push word_2D032
push 0Ah
call sub_1E5D8
call sub_1E5D8 pascal, _boss_hitbox_radius.x, _boss_hitbox_radius.y, 10
pop bp
retn
sub_1E67C endp
@ -37025,8 +37019,8 @@ loc_1E801:
setfarfp _boss_update, sub_2026A
mov _boss_fg_render, offset sub_12F5F
mov _boss_sprite_cur, 128
mov word_2D030, 180h
mov word_2D032, 300h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (48 shl 4)
mov bgm_title_id, 0Fh
mov fp_259DC, offset sub_11195
call _cdg_free pascal, 16
@ -48690,8 +48684,7 @@ byte_2D02B db ?
byte_2D02C db ?
byte_2D02D db ?
include th04/formats/bb_stage[bss].asm
word_2D030 dw ?
word_2D032 dw ?
include th04/boss_hitbox[bss].asm
word_2D034 dw ?
word_2D036 dw ?
word_2D038 dw ?

View File

@ -18366,8 +18366,8 @@ sub_14544 proc near
setfarfp _boss_update_func, sub_186B6
mov _boss_fg_render_func, offset sub_10904
mov _boss_sprite_cur, 180
mov word_2D088, 180h
mov word_2D08A, 180h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (24 shl 4)
mov _boss_sprite_left, 186
mov _boss_sprite_right, 184
mov _boss_sprite_stay, 180
@ -18411,8 +18411,8 @@ sub_14613 proc near
setfarfp _boss_update_func, sub_1903A
mov _boss_fg_render_func, offset sub_10A2A
mov _boss_sprite_cur, 180
mov word_2D088, 180h
mov word_2D08A, 180h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (24 shl 4)
mov _boss_backdrop_colorfill, offset sub_DEA6
push ds
push offset aSt01_bmt ; "st01.bmt"
@ -18453,8 +18453,8 @@ sub_146D0 proc near
setfarfp _boss_update_func, sub_1A044
mov _boss_fg_render_func, offset sub_10C9A
mov _boss_sprite_cur, 180
mov word_2D088, 180h
mov word_2D08A, 180h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (24 shl 4)
mov _boss_backdrop_colorfill, offset sub_DEB4
mov _boss_sprite_left, 188
mov _boss_sprite_right, 186
@ -18503,8 +18503,8 @@ sub_1479F proc near
mov _boss_fg_render_func, offset sub_10D71
mov _boss_sprite_cur, 180
mov byte_2635C, 0B4h
mov word_2D088, 180h
mov word_2D08A, 180h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (24 shl 4)
mov _boss_backdrop_colorfill, offset sub_DEC2
push ds
push offset aSt03_bmt ; "st03.bmt"
@ -18549,8 +18549,8 @@ sub_14879 proc near
setfarfp _boss_update_func, sub_1D26B
mov _boss_fg_render_func, offset sub_10FD2
mov _boss_sprite_cur, 180
mov word_2D088, 180h
mov word_2D08A, 180h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (24 shl 4)
mov _boss_backdrop_colorfill, offset sub_E01E
push ds
push offset aSt04_bmt ; "st04.bmt"
@ -18591,8 +18591,8 @@ sub_14976 proc near
setfarfp _boss_update_func, sub_1E197
mov _boss_fg_render_func, offset sub_110E4
mov _boss_sprite_cur, 180
mov word_2D088, 180h
mov word_2D08A, 180h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (24 shl 4)
mov _boss_backdrop_colorfill, offset sub_E914
call _cdg_load_all_noalpha pascal, 16, ds, offset aSt05bk_cdg
call _cdg_load_all_noalpha pascal, 17, ds, offset aSt05bk2_cdg
@ -18630,8 +18630,8 @@ sub_14A06 proc near
setfarfp _boss_update_func, sub_1F289
mov _boss_fg_render_func, offset sub_117C9
mov _boss_sprite_cur, 180
mov word_2D088, 180h
mov word_2D08A, 180h
mov _boss_hitbox_radius.x, (24 shl 4)
mov _boss_hitbox_radius.y, (24 shl 4)
mov _boss_backdrop_colorfill, offset sub_E914
push ds
push offset aSt06_bmt ; "st06.bmt"
@ -35294,7 +35294,7 @@ loc_1E333:
push 3200230h
push 2D00320h
call sub_E752
mov word_2D088, ax
mov _boss_hitbox_radius.x, ax
mov fp_2CE4A, offset sub_1DA1C
loc_1E36F:
@ -35447,7 +35447,7 @@ loc_1E4CB:
jle short loc_1E527
inc boss_phase
mov _boss_sprite_cur, 180
mov word_2D088, 180h
mov _boss_hitbox_radius.x, (24 shl 4)
mov Palettes, 60h
mov Palettes+2, 0
call snd_se_play pascal, 13
@ -38070,10 +38070,7 @@ sub_1FA9D endp
sub_1FADD proc near
push bp
mov bp, sp
push word_2D088
push word_2D08A
push 4
call sub_1FA5E
call sub_1FA5E pascal, _boss_hitbox_radius.x, _boss_hitbox_radius.y, 4
mov byte_26348, al
mov ah, 0
sub _boss_hp, ax
@ -38099,10 +38096,7 @@ sub_1FADD endp
sub_1FB07 proc near
push bp
mov bp, sp
push word_2D088
push word_2D08A
push 0Ah
call sub_1FA5E
call sub_1FA5E pascal, _boss_hitbox_radius.x, _boss_hitbox_radius.y, 10
pop bp
retn
sub_1FB07 endp
@ -46666,8 +46660,7 @@ byte_2D083 db ?
byte_2D084 db ?
byte_2D085 db ?
include th04/formats/bb_stage[bss].asm
word_2D088 dw ?
word_2D08A dw ?
include th04/boss_hitbox[bss].asm
dd ? ;
db ? ;
db ? ;