Portal Sprite cleanup

This commit is contained in:
scawful
2025-01-06 17:54:23 -05:00
parent 02df9c4856
commit 8eff895633

View File

@@ -31,10 +31,6 @@
!Boss = 00 ; 00 = normal sprite, 01 = sprite is a boss !Boss = 00 ; 00 = normal sprite, 01 = sprite is a boss
%Set_Sprite_Properties(Sprite_Portal_Prep, Sprite_Portal_Long) %Set_Sprite_Properties(Sprite_Portal_Prep, Sprite_Portal_Long)
; =========================================================
; Long Sprite Code
; =========================================================
Sprite_Portal_Long: Sprite_Portal_Long:
{ {
PHB : PHK : PLB PHB : PHK : PLB
@@ -44,12 +40,8 @@ Sprite_Portal_Long:
.SpriteIsNotActive .SpriteIsNotActive
PLB PLB
RTL RTL
} }
; =========================================================
; Sprite Initialization code
; =========================================================
Sprite_Portal_Prep: Sprite_Portal_Prep:
{ {
PHB : PHK : PLB PHB : PHK : PLB
@@ -78,10 +70,6 @@ OrangeActive = $7E06FD
OrangeSpriteIndex = $7E0633 OrangeSpriteIndex = $7E0633
BlueSpriteIndex = $7E0632 BlueSpriteIndex = $7E0632
; =========================================================
; Main Sprite Code
; =========================================================
Sprite_Portal_Main: Sprite_Portal_Main:
{ {
LDA.w SprAction, X LDA.w SprAction, X
@@ -322,19 +310,14 @@ RejectOnTileCollision:
RTS RTS
} }
;==========================================================
Sprite_Portal_Draw: Sprite_Portal_Draw:
{ {
JSL Sprite_PrepOamCoord JSL Sprite_PrepOamCoord
JSL Sprite_OAM_AllocateDeferToPlayer JSL Sprite_OAM_AllocateDeferToPlayer
LDA $0DC0, X : CLC : ADC $0D90, X : TAY;Animation Frame LDA $0DC0, X : CLC : ADC $0D90, X : TAY;Animation Frame
LDA .start_index, Y : STA $06 LDA .start_index, Y : STA $06
PHX PHX
LDX .nbr_of_tiles, Y ;amount of tiles -1 LDX .nbr_of_tiles, Y ;amount of tiles -1
LDY.b #$00 LDY.b #$00
@@ -382,9 +365,6 @@ Sprite_Portal_Draw:
RTS RTS
; Draw Data
.start_index .start_index
db $00, $01, $02, $03 db $00, $01, $02, $03
.nbr_of_tiles .nbr_of_tiles