ref: eadffc8ae3b7da4693cf136590bf24c313f686b6
parent: 6a6ae61741c7dc81f6c8cd3f8b2a5837961b4982
author: Marcus Huderle <huderlem@gmail.com>
date: Mon Dec 23 17:26:41 EST 2013
Wavy Screen animation line offsets INCBIN.
--- a/main.asm
+++ b/main.asm
@@ -114865,7 +114865,7 @@
ld d, $80
ld e, $8f
ld c, $ff
- ld hl, Unknown_796bf
+ ld hl, WavyScreenLineOffsets
.asm_7967f
push hl
.asm_79680
@@ -114878,7 +114878,7 @@
ld a, [hl]
cp d
jr nz, .asm_79691
- ld hl, Unknown_796bf
+ ld hl, WavyScreenLineOffsets
.asm_79691
dec c
jr nz, .asm_7967f
@@ -114904,11 +114904,15 @@
ld a, [hl]
cp d
ret nz
- ld hl, Unknown_796bf
+ ld hl, WavyScreenLineOffsets
ret
-Unknown_796bf: ; 796bf (1e:56bf)
-INCBIN "baserom.gbc",$796bf,$796e0 - $796bf
+WavyScreenLineOffsets: ; 796bf (1e:56bf)
+; Sequence of horizontal line pixel offsets for the wavy screen animation.
+; This sequence vaguely resembles a sine wave.
+ db 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, 1
+ db 0, 0, 0, 0, 0, -1, -1, -1, -2, -2, -2, -2, -2, -1, -1, -1
+ db $80 ; terminator
AnimationSubstitute: ; 796e0 (1e:56e0)
; Changes the pokemon's sprite to the mini sprite