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