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

@@ -33,12 +33,6 @@ LoadBonkItemGFX_inner:
JSR LoadBonkItem
STA.w SprSourceItemId, X
JSL RequestStandingItemVRAMSlot
PHA : PHX
LDA.w SprItemReceipt,X : TAX
LDA.l SpriteProperties_standing_width,X : BNE +
LDA.b #$00 : STA.l SpriteDynamicOAM : STA.l SpriteDynamicOAM+8
+
PLX : PLA
RTL
;--------------------------------------------------------------------------------
DrawBonkItemGFX: