shithub: pokered

Download patch

ref: 7092b24e80daf428258644241e69490b82d09075
parent: 0abba45a6558dd3f37b9b9f50a695da9df40f138
author: Marcus Huderle <huderlem@gmail.com>
date: Thu Dec 26 08:17:38 EST 2013

Spinner Tiles facing directions INCBIN.

--- a/main.asm
+++ b/main.asm
@@ -74463,7 +74463,7 @@
 	ld a, [$c102]
 	srl a
 	srl a
-	ld hl, Unknown_45083 ; $5083
+	ld hl, SpinnerPlayerFacingDirections ; $5083
 	ld c, a
 	ld b, $0
 	add hl, bc
@@ -74592,8 +74592,14 @@
 	db BANK(Tset16_GFX)
 	dw $94D0
 
-Unknown_45083: ; 45083 (11:5083)
-INCBIN "baserom.gbc",$45083,$45087 - $45083
+SpinnerPlayerFacingDirections: ; 45083 (11:5083)
+; This isn't the order of the facing directions.  Rather, it's a list of
+; the facing directions that come next. For example, when the player is
+; facing down (00), the next facing direction is left (08).
+	db $08 ; down -> left
+	db $0C ; up -> right
+	db $04 ; left -> up
+	db $00 ; right -> down
 
 ; these tiles are the animation for the tiles that push the player in dungeons like Rocket HQ
 SpinnerArrowAnimTiles: ; 45087 (11:5087)