;;; do loss of life stuff here
;; DEC myLives
LDA myScore ;; to read/load the value corresponding to the units
LDA myScore+1 ;; to read/load the value corresponding to the tenths
LDA myScore+2 ;; to read/load the value corresponding to the hundreds
LDA myScore+3 ;; to read/load the value corresponding to the thousands
LDA myScoreSave
STA myScore
LDA myScoreSave+1
STA myScore+1
LDA myScoreSave+2
STA myScore+2
LDA myScoreSave+3
STA myScore+3
SubtractValue #$02, myLives, #$01, #$00 ;;Subtract 1 from the Ones digit
;;AddValue #$02, myLives, #$01, #$00 ;;add 1 from the Ones digit ally
;; first, checking the tenths:
LDA myLives+1
BNE gameNotOver
;; if the tenth digit is zero, then checking the units:
LDA myLives
BNE gameNotOver
;;do gameover stuff here. Warp to screen? Show animation? Just restart?
JMP RESET
gameNotOver:
;;;;;
;;; do warp to continue screen stuff here.
LDA #$00
STA newGameState
LDA continueMap
clc
ADC #$01
STA temp
GoToScreen continueScreen, temp, #$04
LDA #$00
STA playerToSpawn
; LDX player1_object
; DeactivateCurrentObject
LDA #$01
STA loadObjectFlag
LDA continuePositionX
STA newX
LDA continuePositionY
STA newY