LDX tempx
LDA Object_type,x ;; we check the type of the object that is doing the action
CMP #OBJECT_PLAYER_PROJECTILE ;;#$02 ;; is it a projectile type object ?
BNE + ;; if not we skip the destroy object
;; what should we do with the projectile?
INC limitProjectile
DeactivateCurrentObject
+
LDX tempx
LDA Object_type,x ;; we check the type of the object that is doing the action
CMP #OBJECT_PLAYER_MELEE ;;#$01 ;; is it a melee type object ?
BEQ + ;; if is IS, we skip the destroy object
;; what should we do with the projectile?
INC limitProjectile
DeactivateCurrentObject
+