mirror of
https://github.com/pkali/Avery_Breakout.git
synced 2026-05-20 22:33:55 +02:00
Brick counter and level end.
This commit is contained in:
+11
-1
@@ -503,6 +503,13 @@ dX_gr_dY__dX_dYpos
|
|||||||
|
|
||||||
bounceDone
|
bounceDone
|
||||||
jsr ScoreUp
|
jsr ScoreUp
|
||||||
|
dew BricksInLevel
|
||||||
|
lda BricksInLevel
|
||||||
|
ora BricksInLevel+1
|
||||||
|
bne NoLevelEnd
|
||||||
|
; all bricks gone - level ended!
|
||||||
|
jmp gameOver
|
||||||
|
NoLevelEnd
|
||||||
;spawn the new bally
|
;spawn the new bally
|
||||||
; if there is still an empty slot for a new ball somewhere...
|
; if there is still an empty slot for a new ball somewhere...
|
||||||
;lda RANDOM
|
;lda RANDOM
|
||||||
@@ -1065,6 +1072,8 @@ drawBricksLoop
|
|||||||
cmp #maxBrickLines+margin*2
|
cmp #maxBrickLines+margin*2
|
||||||
bne drawBricksLoopY
|
bne drawBricksLoopY
|
||||||
|
|
||||||
|
; set number of bricks in this level
|
||||||
|
mwa #952 BricksInLevel
|
||||||
rts
|
rts
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
randomStart
|
randomStart
|
||||||
@@ -1094,7 +1103,8 @@ randomStart
|
|||||||
sta dyTableL,x
|
sta dyTableL,x
|
||||||
rts
|
rts
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
|
BricksInLevel
|
||||||
|
.word 0
|
||||||
lineAdrL
|
lineAdrL
|
||||||
:margin .byte <marginLine ;8 lines of margin space
|
:margin .byte <marginLine ;8 lines of margin space
|
||||||
:maxLines .byte <(display+40*#)
|
:maxLines .byte <(display+40*#)
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user