Update minecart and pedestal sprite positions; clean up switch track code

This commit is contained in:
scawful
2025-03-24 21:02:28 -04:00
parent 706dcc0710
commit 62b4ad4e99
3 changed files with 7 additions and 12 deletions

View File

@@ -29,9 +29,7 @@
!ImpervSwordHammer = 00 ; 01 = Impervious to sword and hammer attacks
!Boss = 00 ; 00 = normal sprite, 01 = sprite is a boss
%Set_Sprite_Properties(Sprite_RotatingTrack_Prep, Sprite_RotatingTrack_Long);
; =========================================================
%Set_Sprite_Properties(Sprite_RotatingTrack_Prep, Sprite_RotatingTrack_Long)
Sprite_RotatingTrack_Long:
{
@@ -44,8 +42,6 @@ Sprite_RotatingTrack_Long:
RTL
}
; =========================================================
Sprite_RotatingTrack_Prep:
{
PHB : PHK : PLB
@@ -55,10 +51,10 @@ Sprite_RotatingTrack_Prep:
; We use AND #$F8 to clamp to a 8x8 grid.
; Subtract 8 from the Y position to get the tile right above instead.
LDA.w SprY, X : AND #$F8 : SEC : SBC.b #$08 : STA.b $00
LDA.w SprYH, X : STA.b $01
LDA.w SprYH, X : STA.b $01
LDA.w SprX, X : AND #$F8 : STA.b $02
LDA.w SprXH, X : STA.b $03
LDA.w SprXH, X : STA.b $03
; Fetch tile attributes based on current coordinates
LDA.b #$00 : JSL Sprite_GetTileAttr
@@ -140,8 +136,6 @@ Sprite_RotatingTrack_Main:
}
}
; =========================================================
Sprite_RotatingTrack_Draw:
{
JSL Sprite_PrepOamCoord