mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-17 02:22:29 +13:00
Title screen pokemon logo bouncing effect.
This commit is contained in:
parent
0e347a3b4f
commit
e23f3ce2a2
24
main.asm
24
main.asm
|
|
@ -10946,8 +10946,8 @@ ENDC
|
||||||
call GBPalNormal
|
call GBPalNormal
|
||||||
ld a, $e4
|
ld a, $e4
|
||||||
ld [rOBP0], a ; $FF00+$48
|
ld [rOBP0], a ; $FF00+$48
|
||||||
ld bc, $ffaf
|
ld bc, $ffaf ; background scroll Y
|
||||||
ld hl, .unknown_43db ; $43db
|
ld hl, .TitleScreenPokemonLogoYScrolls ; $43db
|
||||||
.asm_43c6
|
.asm_43c6
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
and a
|
and a
|
||||||
|
|
@ -10960,19 +10960,29 @@ ENDC
|
||||||
.asm_43d4
|
.asm_43d4
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld e, a
|
ld e, a
|
||||||
call .asm_43ea
|
call .ScrollTitleScreenPokemonLogo
|
||||||
jr .asm_43c6
|
jr .asm_43c6
|
||||||
|
|
||||||
.unknown_43db: ; 43db (1:43db)
|
.TitleScreenPokemonLogoYScrolls: ; 43db (1:43db)
|
||||||
INCBIN "baserom.gbc",$43db,$43ea - $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
|
||||||
|
|
||||||
.asm_43ea
|
.ScrollTitleScreenPokemonLogo
|
||||||
|
; Scrolls the Pokemon logo on the title screen to create the bouncing effect
|
||||||
|
; Scrolls d pixels e times
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ld a, [bc]
|
ld a, [bc]
|
||||||
add d
|
add d
|
||||||
ld [bc], a
|
ld [bc], a
|
||||||
dec e
|
dec e
|
||||||
jr nz, .asm_43ea
|
jr nz, .ScrollTitleScreenPokemonLogo
|
||||||
ret
|
ret
|
||||||
.asm_43f4
|
.asm_43f4
|
||||||
call LoadScreenTilesFromBuffer1
|
call LoadScreenTilesFromBuffer1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue