-
Notifications
You must be signed in to change notification settings - Fork 0
/
gameoverscreen.asm
62 lines (43 loc) · 1.27 KB
/
gameoverscreen.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
gameoverscreen:
jsr init_screen_time
lda #3
sta EnemiesMissed
gameoverscreen_loop:
jsr update_drawing
jsr draw_missed_crosses
jsr draw_gameover_score
jsr draw_gameover
jsr update_screen_time
jsr read_button1_flank
cmpa #0
bne gameoverscreen_shutdown
jmp gameoverscreen_loop
gameoverscreen_shutdown
lda #1
sta CurrentScreen
rts
draw_gameover
lda #40
ldb #-65
jsr Moveto_d
ldu #gameover_string
jsr Print_Str_yx
lda #0
ldb #-115
jsr Moveto_d
ldu #enemies_killed_string
jsr Print_Str_yx
rts
draw_gameover_score
lda #0
ldb #20
jsr Moveto_d
lda #0
ldb #0
ldu #Score
jsr Print_Str_d
rts
gameover_string:
db 0, 0, "GAME OVER", $80
enemies_killed_string:
db 0, 0, "STORMS STORMED:", $80