TXA
STA temp
LDA Object_type,x
CMP #$05 ;;What object is your pickup? 00 - 0f
BNE +notThisPickup
GetActionStep temp
CMP #$07 ;; is it invisible ?
BEQ +endPickups
LDA #$00
STA dashCounter
UpdateHudElement #$01
JMP +endPickups
+notThisPickup:
CMP #$04
BNE +notThisPickup
INC myLives
UpdateHudElement #$03
JMP +endPickups
+notThisPickup:
+endPickups
;; There was a collision between a player and a powerup.
;; player is self.
;; powerup is other.
;DestroyObject
LDX otherObject
LDA Object_type,x
CMP #$05
BNE +notAdashPickup
.include SCR_PICKUP_SCRIPTS
ChangeActionStep otherObject, #$07
JMP +skip
+notAdashPickup
DestroyObject
.include SCR_PICKUP_SCRIPTS
+skip
JMP +done