2024-03-30 05:28:34 +00:00
|
|
|
; GAME OVER MAN
|
|
|
|
|
|
|
|
game_over:
|
|
|
|
bit KEYRESET ; clear keyboard
|
|
|
|
bit SET_TEXT
|
|
|
|
|
|
|
|
lda #' '|$80
|
|
|
|
sta clear_all_color+1
|
|
|
|
jsr clear_all
|
|
|
|
|
|
|
|
lda #6
|
|
|
|
sta drawbox_x1
|
|
|
|
lda #33
|
|
|
|
sta drawbox_x2
|
|
|
|
lda #8
|
|
|
|
sta drawbox_y1
|
|
|
|
lda #13
|
|
|
|
sta drawbox_y2
|
|
|
|
jsr drawbox
|
|
|
|
|
|
|
|
jsr normal_text
|
|
|
|
|
|
|
|
lda #<game_over_text
|
|
|
|
sta OUTL
|
|
|
|
lda #>game_over_text
|
|
|
|
sta OUTH
|
|
|
|
jsr move_and_print_list
|
|
|
|
|
|
|
|
jsr page_flip
|
|
|
|
|
2024-04-06 03:56:13 +00:00
|
|
|
ldy #SFX_GAMEOVERSND
|
|
|
|
jsr play_sfx
|
|
|
|
|
2024-03-30 05:28:34 +00:00
|
|
|
query_game_over:
|
|
|
|
lda KEYPRESS
|
|
|
|
bpl query_game_over
|
|
|
|
bit KEYRESET
|
|
|
|
|
|
|
|
really_game_over:
|
|
|
|
lda #GAME_OVER
|
|
|
|
sta LEVEL_OVER
|
|
|
|
|
|
|
|
lda #LOAD_TITLE
|
|
|
|
sta WHICH_LOAD
|
|
|
|
|
|
|
|
rts
|
|
|
|
|
|
|
|
game_over_text:
|
|
|
|
.byte 15,10,"GAME OVER",0
|
|
|
|
.byte 255
|