mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
Document animation types (shake screen/blink pic)
This commit is contained in:
parent
4e2084b0f1
commit
9d93b5b630
|
@ -407,7 +407,7 @@ MoveAnimation: ; 78d5e (1e:4d5e)
|
||||||
ld c,30
|
ld c,30
|
||||||
call DelayFrames
|
call DelayFrames
|
||||||
.next4
|
.next4
|
||||||
call Func_78dbd ; reload pic and flash the pic in and out (to show damage)
|
call PlayApplyingAttackAnimation ; reload pic and flash the pic in and out (to show damage)
|
||||||
.AnimationFinished
|
.AnimationFinished
|
||||||
call WaitForSoundToFinish
|
call WaitForSoundToFinish
|
||||||
xor a
|
xor a
|
||||||
|
@ -445,7 +445,9 @@ ShareMoveAnimations: ; 78da6 (1e:4da6)
|
||||||
ld [W_ANIMATIONID],a
|
ld [W_ANIMATIONID],a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Func_78dbd: ; 78dbd (1e:4dbd)
|
PlayApplyingAttackAnimation: ; 78dbd (1e:4dbd)
|
||||||
|
; Generic animation that shows after the move's individual animation
|
||||||
|
; Different animation depending on whether the move has an additional effect and on whose turn it is
|
||||||
ld a,[wAnimationType]
|
ld a,[wAnimationType]
|
||||||
and a
|
and a
|
||||||
ret z
|
ret z
|
||||||
|
@ -453,48 +455,48 @@ Func_78dbd: ; 78dbd (1e:4dbd)
|
||||||
add a
|
add a
|
||||||
ld c,a
|
ld c,a
|
||||||
ld b,0
|
ld b,0
|
||||||
ld hl,PointerTable_78dcf
|
ld hl,AnimationTypePointerTable
|
||||||
add hl,bc
|
add hl,bc
|
||||||
ld a,[hli]
|
ld a,[hli]
|
||||||
ld h,[hl]
|
ld h,[hl]
|
||||||
ld l,a
|
ld l,a
|
||||||
jp [hl]
|
jp [hl]
|
||||||
|
|
||||||
PointerTable_78dcf: ; 78dcf (1e:4dcf)
|
AnimationTypePointerTable: ; 78dcf (1e:4dcf)
|
||||||
dw Func_78ddb
|
dw ShakeScreenVertically ; enemy mon has used a non-damaging move
|
||||||
dw Func_78de3
|
dw ShakeScreenHorizontallyHeavy ; enemy mon has used a damaging move with a side effect
|
||||||
dw Func_78deb
|
dw ShakeScreenHorizontallySlow ; enemy mon has used a damaging move without a side effect
|
||||||
dw Func_78df0
|
dw BlinkEnemyMonSprite ; player mon has used a non-damaging move
|
||||||
dw Func_78df6
|
dw ShakeScreenHorizontallyLight ; player mon has used a damaging move with a side effect
|
||||||
dw Func_78dfe
|
dw ShakeScreenHorizontallySlow2 ; player mon has used a damaging move without a side effect
|
||||||
|
|
||||||
Func_78ddb: ; 78ddb (1e:4ddb)
|
ShakeScreenVertically: ; 78ddb (1e:4ddb)
|
||||||
call PlayApplyingAttackSound
|
call PlayApplyingAttackSound
|
||||||
ld b, $8
|
ld b, $8
|
||||||
jp Func_79209
|
jp AnimationShakeScreenVertically
|
||||||
|
|
||||||
Func_78de3: ; 78de3 (1e:4de3)
|
ShakeScreenHorizontallyHeavy: ; 78de3 (1e:4de3)
|
||||||
call PlayApplyingAttackSound
|
call PlayApplyingAttackSound
|
||||||
ld b, $8
|
ld b, $8
|
||||||
jp Func_79210
|
jp AnimationShakeScreenHorizontallyFast
|
||||||
|
|
||||||
Func_78deb: ; 78deb (1e:4deb)
|
ShakeScreenHorizontallySlow: ; 78deb (1e:4deb)
|
||||||
ld bc, $602
|
ld bc, $602
|
||||||
jr Func_78e01
|
jr AnimationShakeScreenHorizontallySlow
|
||||||
|
|
||||||
Func_78df0: ; 78df0 (1e:4df0)
|
BlinkEnemyMonSprite: ; 78df0 (1e:4df0)
|
||||||
call PlayApplyingAttackSound
|
call PlayApplyingAttackSound
|
||||||
jp AnimationBlinkEnemyMon
|
jp AnimationBlinkEnemyMon
|
||||||
|
|
||||||
Func_78df6: ; 78df6 (1e:4df6)
|
ShakeScreenHorizontallyLight: ; 78df6 (1e:4df6)
|
||||||
call PlayApplyingAttackSound
|
call PlayApplyingAttackSound
|
||||||
ld b, $2
|
ld b, $2
|
||||||
jp Func_79210
|
jp AnimationShakeScreenHorizontallyFast
|
||||||
|
|
||||||
Func_78dfe: ; 78dfe (1e:4dfe)
|
ShakeScreenHorizontallySlow2: ; 78dfe (1e:4dfe)
|
||||||
ld bc, $302
|
ld bc, $302
|
||||||
|
|
||||||
Func_78e01: ; 78e01 (1e:4e01)
|
AnimationShakeScreenHorizontallySlow: ; 78e01 (1e:4e01)
|
||||||
push bc
|
push bc
|
||||||
push bc
|
push bc
|
||||||
.asm_78e03
|
.asm_78e03
|
||||||
|
@ -516,7 +518,7 @@ Func_78e01: ; 78e01 (1e:4e01)
|
||||||
jr nz, .asm_78e11
|
jr nz, .asm_78e11
|
||||||
pop bc
|
pop bc
|
||||||
dec c
|
dec c
|
||||||
jr nz, Func_78e01
|
jr nz, AnimationShakeScreenHorizontallySlow
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Func_78e23: ; 78e23 (1e:4e23)
|
Func_78e23: ; 78e23 (1e:4e23)
|
||||||
|
@ -1225,14 +1227,14 @@ Func_791fc: ; 791fc (1e:51fc)
|
||||||
|
|
||||||
ld b, $5
|
ld b, $5
|
||||||
|
|
||||||
Func_79209: ; 79209 (1e:5209)
|
AnimationShakeScreenVertically: ; 79209 (1e:5209)
|
||||||
predef_jump Func_480ff
|
predef_jump Func_480ff
|
||||||
|
|
||||||
AnimationShakeScreen: ; 7920e (1e:520e)
|
AnimationShakeScreen: ; 7920e (1e:520e)
|
||||||
; Shakes the screen for a while. Used in Earthquake/Fissure/etc. animations.
|
; Shakes the screen for a while. Used in Earthquake/Fissure/etc. animations.
|
||||||
ld b, $8
|
ld b, $8
|
||||||
|
|
||||||
Func_79210: ; 79210 (1e:5210)
|
AnimationShakeScreenHorizontallyFast: ; 79210 (1e:5210)
|
||||||
predef_jump Func_48125
|
predef_jump Func_48125
|
||||||
|
|
||||||
AnimationWaterDropletsEverywhere: ; 79215 (1e:5215)
|
AnimationWaterDropletsEverywhere: ; 79215 (1e:5215)
|
||||||
|
|
Loading…
Reference in a new issue