Merge pull request #212 from cassidoxa/bonkkey

Update HUD when picking up bonk key
This commit is contained in:
Lexi Rose
2024-01-02 11:33:56 -06:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ GiveBonkItem:
PHY : LDY.b #$24 : JSL.l AddInventory : PLY ; do inventory processing for a small key PHY : LDY.b #$24 : JSL.l AddInventory : PLY ; do inventory processing for a small key
LDA.l CurrentSmallKeys : INC A : STA.l CurrentSmallKeys LDA.l CurrentSmallKeys : INC A : STA.l CurrentSmallKeys
LDA.b #$2F : JSL.l Sound_SetSfx3PanLong LDA.b #$2F : JSL.l Sound_SetSfx3PanLong
INC.w UpdateHUDFlag
RTL RTL
.notKey .notKey
PHY : TAY : JSL.l Link_ReceiveItem : PLY PHY : TAY : JSL.l Link_ReceiveItem : PLY

View File

@@ -45,9 +45,11 @@ DrawHeartPieceGFX:
LDA.w SpriteControl, X : ORA.b #$20 : STA.w SpriteControl, X LDA.w SpriteControl, X : ORA.b #$20 : STA.w SpriteControl, X
PLA PLA
JSL.l DrawDynamicTile JSL.l DrawDynamicTile
REP #$21
LDA.b Scrap00 LDA.b Scrap00
CLC : ADC.b #$04 ADC.w #$0004
STA.b Scrap00 STA.b Scrap00
SEP #$20
JSL.l Sprite_DrawShadowLong JSL.l Sprite_DrawShadowLong
BRA .done BRA .done
+ +