bulk replace SprX/SprY labels to all sprites, .w qualifiers on STAs
This commit is contained in:
@@ -125,10 +125,10 @@ LinkItem_FishingRod:
|
||||
LDA.b #$74
|
||||
JSL $1DF65D ; Sprite_SpawnDynamically because whatever
|
||||
|
||||
LDA.b $22 : STA.w $0D10, Y
|
||||
LDA.b $23 : STA.w $0D30, Y
|
||||
LDA.b $20 : STA.w $0D00, Y
|
||||
LDA.b $21 : STA.w $0D20, Y
|
||||
LDA.b $22 : STA.w SprX, Y
|
||||
LDA.b $23 : STA.w SprXH, Y
|
||||
LDA.b $20 : STA.w SprY, Y
|
||||
LDA.b $21 : STA.w SprYH, Y
|
||||
LDA.b #$01 : STA.w $0E70, Y ; is floater
|
||||
TYA : STA.l $7F5BA3 ; keep the index of the sprite
|
||||
TYX
|
||||
|
||||
@@ -87,14 +87,14 @@ macro SpawnPortal(x_offset, y_offset)
|
||||
REP #$20
|
||||
LDA $22 : CLC : ADC.w #<x_offset>
|
||||
SEP #$20
|
||||
STA $0D10, Y ; SprX
|
||||
XBA : STA $0D30, Y ; SprXH
|
||||
STA.w SprX, Y ; SprX
|
||||
XBA : STA.w SprXH, Y ; SprXH
|
||||
|
||||
REP #$20
|
||||
LDA $20 : CLC : ADC.w #<y_offset>
|
||||
SEP #$20
|
||||
STA $0D00, Y ; SprY
|
||||
XBA : STA $0D20, Y ; SprYH
|
||||
STA.w SprY, Y ; SprY
|
||||
XBA : STA.w SprYH, Y ; SprYH
|
||||
endmacro
|
||||
|
||||
LinkItem_FirePortal:
|
||||
|
||||
Reference in New Issue
Block a user