diff options
author | Marcus Huderle <huderlem@gmail.com> | 2013-12-05 10:02:20 -0600 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2013-12-05 10:02:20 -0600 |
commit | e23f3ce2a2308d76a14cec9ea082f771e34d3577 (patch) | |
tree | 72e03cbca332247e6cb7a3c18622575c6fa9de5b /main.asm | |
parent | 0e347a3b4fcad5004d292508e14491f2719f8e7f (diff) |
Title screen pokemon logo bouncing effect.
Diffstat (limited to 'main.asm')
-rwxr-xr-x | main.asm | 26 |
1 files changed, 18 insertions, 8 deletions
@@ -10946,8 +10946,8 @@ ENDC call GBPalNormal ld a, $e4 ld [rOBP0], a ; $FF00+$48 - ld bc, $ffaf - ld hl, .unknown_43db ; $43db + ld bc, $ffaf ; background scroll Y + ld hl, .TitleScreenPokemonLogoYScrolls ; $43db .asm_43c6 ld a, [hli] and a @@ -10960,19 +10960,29 @@ ENDC .asm_43d4 ld a, [hli] ld e, a - call .asm_43ea + call .ScrollTitleScreenPokemonLogo jr .asm_43c6 -.unknown_43db: ; 43db (1:43db) -INCBIN "baserom.gbc",$43db,$43ea - $43db - -.asm_43ea +.TitleScreenPokemonLogoYScrolls: ; 43db (1:43db) +; Controls the bouncing effect of the Pokemon logo on the title screen + db $FC,$10 ; y scroll amount ($FC means -4), number of times to scroll + db $03,$04 + db $FD,$04 + db $02,$02 + db $FE,$02 + db $01,$02 + db $FF,$02 + db $00 ; terminate list with $00 + +.ScrollTitleScreenPokemonLogo +; Scrolls the Pokemon logo on the title screen to create the bouncing effect +; Scrolls d pixels e times call DelayFrame ld a, [bc] add d ld [bc], a dec e - jr nz, .asm_43ea + jr nz, .ScrollTitleScreenPokemonLogo ret .asm_43f4 call LoadScreenTilesFromBuffer1 |