levels rotation (first -> second -> ... -> last -> first -> ...)
This commit is contained in:
parent
977c3cf0e6
commit
86ec781787
@ -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
|
||||
; ----------------------------------------------------------------------
|
||||
|
@ -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
|
||||
|
@ -51,5 +51,6 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
}
|
||||
}
|
||||
cout << '\0';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user