Animate standing rupees for enemy drops
This commit is contained in:
@@ -5,6 +5,7 @@ DynamicDropGFX = $7EF500
|
|||||||
; we're expecting 5 items max per room, and order is irrelevant
|
; we're expecting 5 items max per room, and order is irrelevant
|
||||||
; we just need to keep track of where they go
|
; we just need to keep track of where they go
|
||||||
DynamicDropGFXIndex = $7E1E70
|
DynamicDropGFXIndex = $7E1E70
|
||||||
|
!DynamicDropGFXSlotCount = (FreeUWGraphics_end-FreeUWGraphics)>>1
|
||||||
|
|
||||||
; this will keep track of the above for each item
|
; this will keep track of the above for each item
|
||||||
SprItemGFX = $7E0780
|
SprItemGFX = $7E0780
|
||||||
@@ -17,13 +18,17 @@ DynamicDropQueue = $7E1E72
|
|||||||
; A = item receipt ID
|
; A = item receipt ID
|
||||||
; X = slot
|
; X = slot
|
||||||
RequestStandingItemVRAMSlot:
|
RequestStandingItemVRAMSlot:
|
||||||
STA.w DynamicDropQueue
|
CMP.b #$34 : BCC +
|
||||||
|
CMP.b #$37 : BCS + ; if rupees, use animated rupee OAM slot
|
||||||
|
LDA.b #!DynamicDropGFXSlotCount : STA.w SprItemGFX,X
|
||||||
|
RTL
|
||||||
|
+ STA.w DynamicDropQueue
|
||||||
LDA.b #$01
|
LDA.b #$01
|
||||||
STA.w DynamicDropRequest
|
STA.w DynamicDropRequest
|
||||||
|
|
||||||
LDA.w DynamicDropGFXIndex
|
LDA.w DynamicDropGFXIndex
|
||||||
INC
|
INC
|
||||||
CMP.b #$05 : BCC .fine
|
CMP.b #!DynamicDropGFXSlotCount : BCC .fine
|
||||||
|
|
||||||
LDA.b #$00
|
LDA.b #$00
|
||||||
|
|
||||||
@@ -31,7 +36,6 @@ RequestStandingItemVRAMSlot:
|
|||||||
STA.w DynamicDropGFXIndex
|
STA.w DynamicDropGFXIndex
|
||||||
STA.w SprItemGFX,X
|
STA.w SprItemGFX,X
|
||||||
|
|
||||||
|
|
||||||
; decompress graphics
|
; decompress graphics
|
||||||
PHX
|
PHX
|
||||||
LDX.w DynamicDropQueue
|
LDX.w DynamicDropQueue
|
||||||
@@ -50,7 +54,6 @@ RequestStandingItemVRAMSlot:
|
|||||||
|
|
||||||
RTL
|
RTL
|
||||||
|
|
||||||
|
|
||||||
;===================================================================================================
|
;===================================================================================================
|
||||||
|
|
||||||
TransferPotGFX:
|
TransferPotGFX:
|
||||||
@@ -94,16 +97,11 @@ FreeUWGraphics:
|
|||||||
dw $8800>>1
|
dw $8800>>1
|
||||||
dw $8840>>1
|
dw $8840>>1
|
||||||
dw $8980>>1
|
dw $8980>>1
|
||||||
dw $9CA0>>1
|
|
||||||
dw $9DC0>>1
|
|
||||||
|
|
||||||
; dw $8800>>1
|
|
||||||
; dw $8840>>1
|
|
||||||
; dw $8980>>1
|
|
||||||
; dw $9960>>1 # Arghuss Splash apparently
|
; dw $9960>>1 # Arghuss Splash apparently
|
||||||
; dw $9C00>>1
|
; dw $9C00>>1
|
||||||
; dw $9CA0>>1
|
dw $9CA0>>1
|
||||||
; dw $9DC0>>1
|
dw $9DC0>>1
|
||||||
|
.end
|
||||||
|
|
||||||
;===================================================================================================
|
;===================================================================================================
|
||||||
|
|
||||||
@@ -163,6 +161,11 @@ DynamicOAMTile_thin:
|
|||||||
dw 0, 0 : db $EE, $00, $20, $00
|
dw 0, 0 : db $EE, $00, $20, $00
|
||||||
dw 0, 8 : db $FE, $00, $20, $00
|
dw 0, 8 : db $FE, $00, $20, $00
|
||||||
|
|
||||||
|
; add new slots above this line
|
||||||
|
|
||||||
|
dw 0, 0 : db $0B, $00, $20, $00 ; animated rupees slot
|
||||||
|
dw 0, 8 : db $1B, $00, $20, $00
|
||||||
|
|
||||||
DynamicOAMTile_full:
|
DynamicOAMTile_full:
|
||||||
dw -4, -1 : db $40, $00, $20, $02
|
dw -4, -1 : db $40, $00, $20, $02
|
||||||
dd 0, 0
|
dd 0, 0
|
||||||
|
|||||||
Reference in New Issue
Block a user