add timer to HandleTileDirections to avoid overtriggering
This commit is contained in:
@@ -454,11 +454,14 @@ SetTileLookupPosBasedOnDirection:
|
|||||||
print "HandleTileDirections ", pc
|
print "HandleTileDirections ", pc
|
||||||
HandleTileDirections:
|
HandleTileDirections:
|
||||||
{
|
{
|
||||||
|
LDA SprTimerA, X : BEQ +
|
||||||
|
RTS
|
||||||
|
+
|
||||||
|
|
||||||
; Setup Minecart position to look for tile IDs
|
; Setup Minecart position to look for tile IDs
|
||||||
; We use AND #$F8 to clamp to a 16x16 grid, however this needs work.
|
; We use AND #$F8 to clamp to a 16x16 grid, however this needs work.
|
||||||
LDA.w SprY, X : AND #$F8 : STA.b $00 : LDA.w SprYH, X : STA.b $01
|
LDA.w SprY, X : AND #$F8 : STA.b $00 : 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 SprX, X : AND #$F8 : STA.b $02 : LDA.w SprXH, X : STA.b $03
|
||||||
; JSR SetTileLookupPosBasedOnDirection
|
|
||||||
|
|
||||||
; Fetch tile attributes based on current coordinates
|
; Fetch tile attributes based on current coordinates
|
||||||
LDA.b #$00 : JSL Sprite_GetTileAttr
|
LDA.b #$00 : JSL Sprite_GetTileAttr
|
||||||
|
|||||||
Reference in New Issue
Block a user