I'm trying to change Mario's hitbox to become 8x16 only while small and ducking, and I have been looking over the ROM map, google searching, forum searching, and can't seem to figure this out. I did find two pieces of code that alter Mario's hitbox, but I don't know what to change to get the desired effect. Could someone help me out? I am looking for this to be a global effect as well, not level specific like the second patch indicates.
Here is the code I found:
Here
And this code as well:
Here
Here is the code I found:
Here
Code
;Big Mario hitbox to Small Mario hitbox org $00EB79 db $A9,$00 org $01B4C0 db $A0,$00 org $03B67C db $A9,$00 ;No ducking org $00D604 db $80 org $01EB16 NOP #2 LDA $73
And this code as well:
Here
Code
;LEVEL SPECIFIC HITBOX PATCH ;ORIGINAL BY KPhoenix ;EDITS BY CHIBIKKO ;Ram Controlled Hitbox Version ;By: Chdata & Chibikko ;***Incompatible with Jagfillit's $19 Expand Patch - Although I made him a new version that lets you do the same thing as this patch*** lorom header !RAMHitBox = $87 ;FREE RAM ADDRESS ;CLEAR = NORMAL ;1 = SMALL ;2 = BIG org $EB77 JML main_1 org $01B4BA JML main_2 org $03B676 JML main_3 org $10ED04 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; db "STAR" ; RATS tag dw Endcode-Startcode dw Endcode-Startcode^#$FFFF ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Startcode: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; main_1: ;;;;;;;;;;;;;;;; LDX #$00 LDA !RAMHitBox BEQ NORMAL_1 DEC BRA JML_1 NORMAL_1: LDA $19 JML_1: JML $00EB7B main_2: ;;;;;;;;;;;;;;;; LDA #$00 LDY $73 BNE CODE_01B4C4 LDA !RAMHitBox BEQ NORMAL_2 DEC TAY CPY #$00 BNE CODE_01B4C6 JMP CODE_01B4C4 NORMAL_2: LDA #$00 LDY $19 BNE CODE_01B4C6 CODE_01B4C4: LDA #$08 CODE_01B4C6: LDY $187A BEQ CODE_01B4CD ADC #$08 CODE_01B4CD: JML $01B4CD main_3: ;;;;;;;;;;;;;;;; LDX #$00 LDA !RAMHitBox BEQ NORMAL_3 DEC EOR #$01 ORA $73 ;LDA $73 BEQ CODE_03B681 INX NORMAL_3: LDA $73 BNE CODE_03B680 LDA $19 BNE CODE_03B681 JML $03B680 CODE_03B680: JML $03B680 CODE_03B681: JML $03B681 ;;;;;;;;;;;;;;;;;;;;;;; Endcode: ;;;;;;;;;;;;;;;;;;;;;;; print "I'm psychic, I knew that you would patch this." print "-Chdata-"