mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
recomment _AnimateTileset
This commit is contained in:
parent
cc2906b68f
commit
7d5e5b8182
14
main.asm
14
main.asm
@ -65390,29 +65390,28 @@ DoBadgeTypeBoosts: ; fbe24
|
||||
SECTION "bank3F",ROMX,BANK[$3F]
|
||||
|
||||
_AnimateTileset: ; fc000
|
||||
; Iterate over a given pointer array of animation functions
|
||||
; (one per frame).
|
||||
; Iterate over a given pointer array of
|
||||
; animation functions (one per frame).
|
||||
|
||||
; Typically in wra1, vra0
|
||||
|
||||
; Beginning of animation pointer array
|
||||
ld a, [TilesetAnim]
|
||||
ld e, a
|
||||
ld a, [TilesetAnim + 1]
|
||||
ld d, a
|
||||
|
||||
; Play this frame.
|
||||
ld a, [hTileAnimFrame] ; frame count
|
||||
ld a, [hTileAnimFrame]
|
||||
ld l, a
|
||||
inc a
|
||||
ld [hTileAnimFrame], a
|
||||
|
||||
; Each pointer has:
|
||||
ld h, 0
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
add hl, de
|
||||
|
||||
; 2-byte parameter (all functions take input de)
|
||||
; 2-byte parameter
|
||||
; All functions take input de.
|
||||
ld e, [hl]
|
||||
inc hl
|
||||
ld d, [hl]
|
||||
@ -65426,6 +65425,7 @@ _AnimateTileset: ; fc000
|
||||
jp [hl]
|
||||
; fc01b
|
||||
|
||||
|
||||
Tileset00Anim: ; 0xfc01b
|
||||
Tileset02Anim: ; 0xfc01b
|
||||
Tileset03Anim: ; 0xfc01b
|
||||
|
Loading…
Reference in New Issue
Block a user