Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BattleAnimFunction_Rollout:
- ; Modified version of AncientPower
- ; Object moves up and down in an arc for $20 frames and then disappear
- call BattleAnim_AnonJumptable
- .anon_dw
- dw .zero
- dw .one
- .zero ; right
- ld hl, BATTLEANIMSTRUCT_VAR1
- add hl, bc
- ld a, [hl]
- cp $20
- jr nc, .done
- inc [hl]
- ld hl, BATTLEANIMSTRUCT_XCOORD
- add hl, bc
- inc [hl]
- ld d, 12
- call BattleAnim_Sine
- xor $ff
- inc a
- ld hl, BATTLEANIMSTRUCT_YOFFSET
- add hl, bc
- ld [hl], a
- ret
- .one ; left
- ld hl, BATTLEANIMSTRUCT_VAR1
- add hl, bc
- ld a, [hl]
- cp $20
- jr nc, .done
- inc [hl]
- ld hl, BATTLEANIMSTRUCT_XCOORD
- add hl, bc
- dec [hl]
- ld d, 12
- call BattleAnim_Sine
- xor $ff
- inc a
- ld hl, BATTLEANIMSTRUCT_YOFFSET
- add hl, bc
- ld [hl], a
- ret
Add Comment
Please, Sign In to add comment