Brick counter and level end.

This commit is contained in:
Pecusx
2024-11-27 13:22:22 +01:00
parent 8526449efa
commit ca41c634f0
2 changed files with 11 additions and 1 deletions
+11 -1
View File
@@ -503,6 +503,13 @@ dX_gr_dY__dX_dYpos
bounceDone
jsr ScoreUp
dew BricksInLevel
lda BricksInLevel
ora BricksInLevel+1
bne NoLevelEnd
; all bricks gone - level ended!
jmp gameOver
NoLevelEnd
;spawn the new bally
; if there is still an empty slot for a new ball somewhere...
;lda RANDOM
@@ -1065,6 +1072,8 @@ drawBricksLoop
cmp #maxBrickLines+margin*2
bne drawBricksLoopY
; set number of bricks in this level
mwa #952 BricksInLevel
rts
;--------------------------------------------------
randomStart
@@ -1094,7 +1103,8 @@ randomStart
sta dyTableL,x
rts
;--------------------------------------------------
BricksInLevel
.word 0
lineAdrL
:margin .byte <marginLine ;8 lines of margin space
:maxLines .byte <(display+40*#)
BIN
View File
Binary file not shown.