-
Notifications
You must be signed in to change notification settings - Fork 0
/
credits.asm
167 lines (142 loc) · 2.68 KB
/
credits.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
;Airaki! - FSE 2014
;Released under the GPL V3, see LICENSE.TXT
.DEFINE T_C_ALPHA 0
credits_setup:
di
call screen_off
call clearbkg
call clearsprites
ld hl,(:tiles_alpha*$4000)+tiles_alpha
ld de,$8000+(T_C_ALPHA*16)
call loadtiles_auto
ld a,(GBCOLOR)
or a
jr z,+
ld hl,pal_credits_bg
ld b,2*4*2
xor a
call loadbgpal
ld hl,$9800
ld bc,$2020
xor a
call settilepal
+:
xor a
ld (CREDS_I),a
ld a,1
ld (CREDS_TIMER),a
ld a,255-144
ld (BKG_Y),a
ld hl,VBL_HANDLER
ld de,credits_vbl
ld (hl),e
inc hl
ld (hl),d
ld de,RLI_null
call load_RLI
ld a,%11100100 ;BG palette
ldh ($47),a
ld a,%11100100 ;SPR0 palette
ldh ($48),a
ld a,%10010111 ;Display on, BG on, sprites on 8x16, window off
ldh ($40),a
ld a,%00000001 ;Vblank only
ldh ($FF),a
xor a
ldh ($0F),a
ei
ret
credits_vbl:
ld a,(FRAME)
and 1
ld a,(CREDS_TIMER)
jr nz,+++
ld a,(CREDS_TIMER)
dec a
jr nz,+++
ld hl,$9800+(32*4)
ld bc,32*10
call clear_w
ld hl,$9800+(32*4)
ld bc,$2010
xor a
call settilepal
ld hl,credits_list
ld a,(CREDS_I)
sla a
rst 0
inc hl
ld h,(hl)
ld l,a
ld a,l
or h
jp z,menu_setup
push hl
ld a,(hl)
inc hl
ld h,(hl)
ld l,a
ld a,(GBCOLOR)
or a
jr z,+
push hl
ld a,l
and $E0
ld l,a
ld bc,$2001
ld a,1
call settilepal
pop hl
+:
pop de
inc de
inc de
ld b,32
call maptext
ld a,(CREDS_I)
inc a
ld (CREDS_I),a
ld a,120
+++:
ld (CREDS_TIMER),a
ret
;Offset BGY
;Map text
;Scroll up (in)
;Wait
;Scroll up (out)
;Next line...
credits_list:
.dw creds_0
.dw creds_1
.dw creds_2
.dw creds_3
.dw creds_4
.dw creds_5
.dw 0
creds_0:
.dw $9800+(32*8)+7
.db "AIRAKI!",$FF
creds_1:
.dw $9800+(32*8)+1
.db "CODE & GRAPHICS:",$FE
.db " FURRTEK",$FF
creds_2:
.dw $9800+(32*8)+1
.db "LABEL ART:",$FE
.db " ROBOTWO",$FF
creds_3:
.dw $9800+(32*8)+1
.db "INTRO FANFARE:",$FE
.db " JANKENPOPP",$FF
creds_4:
.dw $9800+(32*6)+1
.db "THANKS:",$FE
.db " DYAK",$FE
.db " KITSCH-BENT",$FE
.db " VILLE HELIN",$FE
.db " YARONET MEMBERS",$FF
creds_5:
.dw $9800+(32*8)+4
.db "THANK YOU",$FE
.db " FOR PLAYING",$FF