shithub: pokecrystal

Download patch

ref: 7d5e5b81823f72d25e4a61ad66019a5fd2a5a586
parent: cc2906b68f6fae7c7b235e381ae0c60d0a069d1f
author: yenatch <yenatch@gmail.com>
date: Sat Aug 31 20:52:19 EDT 2013

recomment _AnimateTileset

--- a/main.asm
+++ b/main.asm
@@ -65390,41 +65390,41 @@
 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]
 	inc hl
-	
+
 ; Function address
 	ld a, [hli]
 	ld h, [hl]
 	ld l, a
-	
+
 	jp [hl]
 ; fc01b
+
 
 Tileset00Anim: ; 0xfc01b
 Tileset02Anim: ; 0xfc01b
--