Restructured GFX drawing routine to a more generic approach

This commit is contained in:
codemann8
2024-03-25 14:28:03 -05:00
parent 6e4b109058
commit b71b48b4b1
4 changed files with 97 additions and 191 deletions

View File

@@ -58,7 +58,12 @@ DrawHeartPieceGFX:
TAX
LDA.l SpriteProperties_standing_width,X : BNE +
PLX
REP #$20 : LDA.b RoomIndex : CMP.w #$0120 : SEP #$20 : BNE .prepShadow
LDA.b IndoorsFlag : BNE .draw ; skip "shadow" change in good bee room
.prepShadow
LDA.w SpriteControl, X : ORA.b #$20 : STA.w SpriteControl, X
.draw
PLA
JSL DrawPotItem
REP #$21