Rename NewBookCode to LinkItem_JumpFeather and format
Additionally, changes the jump state to use the ledge hop mode rather than the recoil animation
This commit is contained in:
@@ -15,17 +15,15 @@ org $07AFF8 ; LinkItem_BugCatchingNet
|
||||
; =============================================================================
|
||||
|
||||
org $2B8000
|
||||
NewBookCode:
|
||||
LinkItem_JumpFeather:
|
||||
{
|
||||
JSL $07983A ; Reset swim state
|
||||
LDA $46 : BNE .cantuseit
|
||||
LDA #$02 : STA $5D ; state recoil
|
||||
LDA #$01 : STA $4D ; state recoil 2
|
||||
LDA #$02 : STA $5D ; set link state recoil
|
||||
LDA #$02 : STA $4D ; set jumping state (ledge hop)
|
||||
|
||||
; Length of the jump
|
||||
LDA #$20
|
||||
|
||||
STA $46
|
||||
LDA #$20 : STA $46
|
||||
|
||||
; Height of the jump
|
||||
LDA #$24
|
||||
@@ -33,12 +31,12 @@ NewBookCode:
|
||||
; Set vertical resistance
|
||||
STA $29
|
||||
STA $02C7
|
||||
|
||||
; Set Links direction to right(?)
|
||||
LDA #$08 : STA $0340 : STA $67
|
||||
|
||||
; Reset Link movement offsets
|
||||
STZ $31
|
||||
STZ $30
|
||||
STZ $31 : STZ $30
|
||||
|
||||
LDA $F4 : AND #$08 : BEQ .noUp
|
||||
LDA #-8 ; Change that -8 if you want higher speed moving up
|
||||
@@ -56,6 +54,7 @@ NewBookCode:
|
||||
LDA #8 ; Change that 8 if you want higher speed moving right
|
||||
STA $28
|
||||
.noRight
|
||||
|
||||
.cantuseit
|
||||
RTL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user