levels rotation (first -> second -> ... -> last -> first -> ...)

This commit is contained in:
giomba 2020-04-08 11:36:18 +02:00
parent 977c3cf0e6
commit 86ec781787
3 changed files with 15 additions and 0 deletions

View File

@ -86,6 +86,9 @@ colorshade: ; a gradient of dark-bright-dark (40 columns)
scoreString:
BYTE "SCORE PART"
BYTE #0
noMoreLevelsString:
BYTE "NO MORE LEVELS"
BYTE #0
; Levels
; ----------------------------------------------------------------------

View File

@ -14,6 +14,17 @@ statusLevelTitle SUBROUTINE
sta dstScreenPointer + 1
jsr printString
; if levels are finished, reset list pointer
ldy #$0
lda (levelPointer),y
bne .continue
lda #<levelsList
sta levelPointer
lda #>levelsList
sta levelPointer + 1
.continue:
; Print level Title
lda levelPointer
sta srcStringPointer

View File

@ -51,5 +51,6 @@ int main(int argc, char** argv) {
}
}
}
cout << '\0';
}