You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Consistent sine wave code formatting
This commit is contained in:
@@ -4083,18 +4083,19 @@ BattleAnim_IncAnonJumptableIndex: ; ce72c (33:672c)
|
||||
ret
|
||||
|
||||
BattleAnim_Cosine: ; ce732 (33:6732)
|
||||
add $10
|
||||
; a = d * cos(a * pi/32)
|
||||
add %010000
|
||||
BattleAnim_Sine: ; ce734 (33:6734)
|
||||
; a = d sin a
|
||||
and $3f
|
||||
cp $20
|
||||
; a = d * sin(a * pi/32)
|
||||
and %111111
|
||||
cp %100000
|
||||
jr nc, .negative
|
||||
call .ApplySineWave
|
||||
ld a, h
|
||||
ret
|
||||
|
||||
.negative
|
||||
and $1f
|
||||
and %011111
|
||||
call .ApplySineWave
|
||||
ld a, h
|
||||
xor $ff
|
||||
@@ -4111,7 +4112,7 @@ BattleAnim_Sine: ; ce734 (33:6734)
|
||||
ld e, [hl]
|
||||
inc hl
|
||||
ld d, [hl]
|
||||
ld hl, $0
|
||||
ld hl, 0
|
||||
.multiply
|
||||
srl a
|
||||
jr nc, .even
|
||||
|
Reference in New Issue
Block a user