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:
|
scoreString:
|
||||||
BYTE "SCORE PART"
|
BYTE "SCORE PART"
|
||||||
BYTE #0
|
BYTE #0
|
||||||
|
noMoreLevelsString:
|
||||||
|
BYTE "NO MORE LEVELS"
|
||||||
|
BYTE #0
|
||||||
|
|
||||||
; Levels
|
; Levels
|
||||||
; ----------------------------------------------------------------------
|
; ----------------------------------------------------------------------
|
||||||
|
@ -14,6 +14,17 @@ statusLevelTitle SUBROUTINE
|
|||||||
sta dstScreenPointer + 1
|
sta dstScreenPointer + 1
|
||||||
jsr printString
|
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
|
; Print level Title
|
||||||
lda levelPointer
|
lda levelPointer
|
||||||
sta srcStringPointer
|
sta srcStringPointer
|
||||||
|
@ -51,5 +51,6 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
cout << '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user