mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Adjust step frame and durations in StepFunction_Turn so that player's sprite is still when landing in a space (#7)
This commit is contained in:
parent
a52e7f4df5
commit
a13558aeb2
@ -1614,10 +1614,10 @@ StepFunction_Turn:
|
||||
ld hl, OBJECT_STEP_FRAME
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
ld [hl], 2
|
||||
ld [hl], 4
|
||||
ld hl, OBJECT_STEP_DURATION
|
||||
add hl, bc
|
||||
ld [hl], 2
|
||||
ld [hl], 1
|
||||
call ObjectStep_IncAnonJumptableIndex
|
||||
.step1
|
||||
ld hl, OBJECT_STEP_DURATION
|
||||
@ -1634,7 +1634,7 @@ StepFunction_Turn:
|
||||
ld [hl], a
|
||||
ld hl, OBJECT_STEP_DURATION
|
||||
add hl, bc
|
||||
ld [hl], 2
|
||||
ld [hl], 3
|
||||
call ObjectStep_IncAnonJumptableIndex
|
||||
.step2
|
||||
ld hl, OBJECT_STEP_DURATION
|
||||
@ -3213,7 +3213,7 @@ InitBranchArrowsSprites:
|
||||
.loop
|
||||
ld a, [de]
|
||||
cp -1 ;
|
||||
jr z, .next1 ; skip this arrow if this direction is not valid
|
||||
jr z, .next1 ; skip this arrow if this direction is not available
|
||||
|
||||
; draw this arrow and advance hUsedSpriteIndex
|
||||
; preserve loop variables d, e, c
|
||||
|
Loading…
Reference in New Issue
Block a user