Yan
Member
Hello, I'm using the maze game module and tried to implement lives but after I die the score glitches, the music stops and collecting all the "things" on screen doesn't take me to the next level.
The PlayerLoseLife.asm looks like this:
The PlayerLoseLife.asm looks like this:
Code:
DEC myLives
LDA myLives
BNE gameNotOver
JMP RESET
gameNotOver:
LDA #$00
STA newGameState
LDA continueMap
CLC
ADC #$01
STA temp
GoToScreen continueScreen, temp, #$04
LDA #$00
STA playerToSpawn
LDA #$01
STA loadObjectFlag
LDA continuePositionX
STA newX
LDA continuePositionY
STA newY