-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro_wind_glimmer_data.asm
368 lines (310 loc) · 15.3 KB
/
astro_wind_glimmer_data.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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
//////////////////////////////////////////////////////////////////////////////
// astro_wind_glimmer_data.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
//////////////////////////////////////////////////////////////////////////////
#importonce
#import "../nv_c64_util/nv_color_macs.asm"
#import "../nv_c64_util/nv_screen_macs.asm"
.const CHAR_COLON = $3A
.const CHAR_LOWEST_LINE = $46
.const CHAR_LOW_LINE = $43
.const CHAR_MED_LINE = $44
.const CHAR_HIGH_LINE = $45
.const CHAR_DASH = $2D
.const CHAR_PERIOD = $2E
.const CHAR_CUSTOM_FULL = $1B // 27
.const CHAR_CUSTOM_SPARSE = $1C // 28
.const CHAR_CUSTOM_FULL_LINES = $1D // 29
.const CHAR_CUSTOM_MEDIUM = $1E // 30
.const WIND_GLIMMER_FRAMES = 7
wind_glimmer_count: .byte $00
///////////////////////////////////////////////////////
.const WG_BRIGHT_COLOR = NV_COLOR_WHITE
.const WG_MED_COLOR = NV_COLOR_LITE_GREY
.const WG_DIM_COLOR = NV_COLOR_GREY
.const WG_CHAR_GALE = $1B
.const WG_CHAR_GUST = $1E
.const WG_CHAR_WIND = $1C
.const WG_CHAR_BREEZE = $3A
// table of the addresses of all the streams for each frame
WindGlimmerStreamAddrTable:
.word wind_glimmer_stream_frame_1
.word wind_glimmer_stream_frame_2
.word wind_glimmer_stream_frame_3
.word wind_glimmer_stream_frame_4
.word wind_glimmer_stream_frame_5
.word wind_glimmer_stream_frame_6
.word wind_glimmer_stream_frame_7
// list of color memory locations for frame 1
wg_f1_color_addr_list:
.word nv_screen_color_addr_from_xy(37, 1)
.word nv_screen_color_addr_from_xy(38, 3)
.word nv_screen_color_addr_from_xy(37, 4)
.word nv_screen_color_addr_from_xy(36, 5)
.word nv_screen_color_addr_from_xy(39, 6)
.word nv_screen_color_addr_from_xy(38, 7)
.word nv_screen_color_addr_from_xy(37, 9)
.word nv_screen_color_addr_from_xy(36, 11)
.word nv_screen_color_addr_from_xy(38, 12)
.word nv_screen_color_addr_from_xy(35, 15)
.word nv_screen_color_addr_from_xy(36, 17)
.word nv_screen_color_addr_from_xy(37, 18)
.word nv_screen_color_addr_from_xy(36, 19)
.word nv_screen_color_addr_from_xy(38, 21)
.word nv_screen_color_addr_from_xy(36, 24)
.word $FFFF
wg_f2_color_addr_list:
.word nv_screen_color_addr_from_xy(33, 1)
.word nv_screen_color_addr_from_xy(31, 3)
.word nv_screen_color_addr_from_xy(32, 4)
.word nv_screen_color_addr_from_xy(32, 5)
.word nv_screen_color_addr_from_xy(33, 6)
.word nv_screen_color_addr_from_xy(34, 9)
.word nv_screen_color_addr_from_xy(32, 12)
.word nv_screen_color_addr_from_xy(30, 14)
.word nv_screen_color_addr_from_xy(32, 18)
.word nv_screen_color_addr_from_xy(33, 21)
.word nv_screen_color_addr_from_xy(31, 23)
.word $FFFF
wg_f3_color_addr_list:
.word nv_screen_color_addr_from_xy(28, 3)
.word nv_screen_color_addr_from_xy(26, 5)
.word nv_screen_color_addr_from_xy(29, 9)
.word nv_screen_color_addr_from_xy(26, 12)
.word nv_screen_color_addr_from_xy(25, 14)
.word nv_screen_color_addr_from_xy(27, 18)
.word nv_screen_color_addr_from_xy(27, 21)
.word nv_screen_color_addr_from_xy(26, 22)
.word $FFFF
wg_f4_color_addr_list:
.word nv_screen_color_addr_from_xy(24, 3)
.word nv_screen_color_addr_from_xy(22, 5)
.word nv_screen_color_addr_from_xy(24, 9)
.word nv_screen_color_addr_from_xy(20, 12)
.word nv_screen_color_addr_from_xy(21, 14)
.word nv_screen_color_addr_from_xy(24, 18)
.word nv_screen_color_addr_from_xy(23, 21)
.word nv_screen_color_addr_from_xy(20, 21)
.word $FFFF
wg_f5_color_addr_list:
.word nv_screen_color_addr_from_xy(19, 3)
.word nv_screen_color_addr_from_xy(18, 5)
.word nv_screen_color_addr_from_xy(15, 12)
.word nv_screen_color_addr_from_xy(16, 14)
.word nv_screen_color_addr_from_xy(19, 20)
.word nv_screen_color_addr_from_xy(16, 22)
.word $FFFF
wg_f6_color_addr_list:
.word nv_screen_color_addr_from_xy(13, 3)
.word nv_screen_color_addr_from_xy(12, 9)
.word nv_screen_color_addr_from_xy(10, 12)
.word nv_screen_color_addr_from_xy(11, 14)
.word nv_screen_color_addr_from_xy(13, 21)
.word nv_screen_color_addr_from_xy(12, 23)
.word $FFFF
wind_glimmer_stream_frame_1:
// copy characters to screen mem for the frame
.word $FFFF // stream command marker
.byte $01, WG_CHAR_GALE // new source byte is the gale wind char
.word nv_screen_char_addr_from_xy(37, 1)
.word nv_screen_char_addr_from_xy(38, 3)
.word nv_screen_char_addr_from_xy(37, 4)
.word nv_screen_char_addr_from_xy(36, 5)
.word nv_screen_char_addr_from_xy(39, 6)
.word nv_screen_char_addr_from_xy(38, 7)
.word nv_screen_char_addr_from_xy(37, 9)
.word nv_screen_char_addr_from_xy(36, 11)
.word nv_screen_char_addr_from_xy(38, 12)
.word nv_screen_char_addr_from_xy(35, 15)
.word nv_screen_char_addr_from_xy(36, 17)
.word nv_screen_char_addr_from_xy(37, 18)
.word nv_screen_char_addr_from_xy(36, 19)
.word nv_screen_char_addr_from_xy(38, 21)
.word nv_screen_char_addr_from_xy(36, 24)
// now copy the color to the color memory for this frame
.word $FFFF // stream command marker
.byte $01, WG_BRIGHT_COLOR // new source byte is color
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f1_color_addr_list // the address of a list of dest addrs
// end the frame
.word $FFFF // stream command marker
.byte $FF // stream quit command
wind_glimmer_stream_frame_2:
// copy characters to screen mem for the frame
.word $FFFF // stream command marker
.byte $01, WG_CHAR_GUST // new source byte is the gale wind char
.word nv_screen_char_addr_from_xy(33, 1)
.word nv_screen_char_addr_from_xy(31, 3)
.word nv_screen_char_addr_from_xy(32, 4)
.word nv_screen_char_addr_from_xy(32, 5)
.word nv_screen_char_addr_from_xy(33, 6)
.word nv_screen_char_addr_from_xy(34, 9)
.word nv_screen_char_addr_from_xy(32, 12)
.word nv_screen_char_addr_from_xy(30, 14)
.word nv_screen_char_addr_from_xy(32, 18)
.word nv_screen_char_addr_from_xy(33, 21)
.word nv_screen_char_addr_from_xy(31, 23)
// now copy the color to the color memory for this frame
.word $FFFF // stream command marker
.byte $01, WG_BRIGHT_COLOR // new source byte is color
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f2_color_addr_list // the address of a list of dest addrs
// change color of Previous frame's chars to be more faint
.word $FFFF // stream command marker
.byte $01, WG_MED_COLOR // new color
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f1_color_addr_list // the address of a list of dest addrs
// end the frame
.word $FFFF // stream command marker
.byte $FF // stream quit command
wind_glimmer_stream_frame_3:
// copy characters to screen mem for the frame
.word $FFFF // stream command marker
.byte $01, WG_CHAR_WIND // new source byte is the gust wind char
.word nv_screen_char_addr_from_xy(28, 3)
.word nv_screen_char_addr_from_xy(26, 5)
.word nv_screen_char_addr_from_xy(29, 9)
.word nv_screen_char_addr_from_xy(26, 12)
.word nv_screen_char_addr_from_xy(25, 14)
.word nv_screen_char_addr_from_xy(27, 18)
.word nv_screen_char_addr_from_xy(27, 21)
.word nv_screen_char_addr_from_xy(26, 22)
// now copy the color to the color memory for this frame
.word $FFFF // stream command marker
.byte $01, WG_BRIGHT_COLOR
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f3_color_addr_list // the address of a list of dest addrs
// change color of previous frame
// now copy the color to the color memory for this frame
.word $FFFF // stream command marker
.byte $01, WG_MED_COLOR // new source byte is color
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f2_color_addr_list // the address of a list of dest addrs
// change color of two frames back
.word $FFFF // stream command marker
.byte $FE // src byte is background color
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f1_color_addr_list // the address of a list of dest addrs
// end the frame
.word $FFFF // stream command marker
.byte $FF // stream quit command
wind_glimmer_stream_frame_4:
// copy characters to screen mem for the frame
.word $FFFF // stream command marker
.byte $01, WG_CHAR_BREEZE // new source byte is the gust wind char
.word nv_screen_char_addr_from_xy(24, 3)
.word nv_screen_char_addr_from_xy(22, 5)
.word nv_screen_char_addr_from_xy(24, 9)
.word nv_screen_char_addr_from_xy(20, 12)
.word nv_screen_char_addr_from_xy(21, 14)
.word nv_screen_char_addr_from_xy(24, 18)
.word nv_screen_char_addr_from_xy(23, 21)
.word nv_screen_char_addr_from_xy(20, 21)
// now copy the color to the color memory for this frame
.word $FFFF // stream command marker
.byte $01, WG_BRIGHT_COLOR
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f4_color_addr_list // the address of a list of dest addrs
// change color of previous frame
// now copy the color to the color memory for this frame
.word $FFFF // stream command marker
.byte $01, WG_MED_COLOR // new source byte is color
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f3_color_addr_list // the address of a list of dest addrs
// change color of two frames back
.word $FFFF // stream command marker
.byte $FE // background color is source byte
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f2_color_addr_list // the address of a list of dest addrs
// end the frame
.word $FFFF // stream command marker
.byte $FF // stream quit command
wind_glimmer_stream_frame_5:
// copy characters to screen mem for the frame
.word $FFFF // stream command marker
.byte $01, WG_CHAR_BREEZE // new source byte is the gust wind char
.word nv_screen_char_addr_from_xy(19, 3)
.word nv_screen_char_addr_from_xy(18, 5)
.word nv_screen_char_addr_from_xy(15, 12)
.word nv_screen_char_addr_from_xy(16, 14)
.word nv_screen_char_addr_from_xy(19, 20)
.word nv_screen_char_addr_from_xy(16, 22)
// now copy the color to the color memory for this frame
.word $FFFF // stream command marker
.byte $01, WG_BRIGHT_COLOR
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f5_color_addr_list // the address of a list of dest addrs
// change color of previous frame to be more faint
.word $FFFF // stream command marker
.byte $01, WG_MED_COLOR // new source byte is color
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f4_color_addr_list // the address of a list of dest addrs
// change color of two frames back
.word $FFFF // stream command marker
.byte $FE // background color is source byte
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f3_color_addr_list // the address of a list of dest addrs
// end the frame
.word $FFFF // stream command marker
.byte $FF // stream quit command
wind_glimmer_stream_frame_6:
// copy characters to screen mem for the frame
.word $FFFF // stream command marker
.byte $01, WG_CHAR_BREEZE // new source byte is the gust wind char
.word nv_screen_char_addr_from_xy(13, 3)
.word nv_screen_char_addr_from_xy(12, 9)
.word nv_screen_char_addr_from_xy(10, 12)
.word nv_screen_char_addr_from_xy(11, 14)
.word nv_screen_char_addr_from_xy(13, 21)
.word nv_screen_char_addr_from_xy(12, 23)
// now copy the color to the color memory for this frame
.word $FFFF // stream command marker
.byte $01, WG_MED_COLOR
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f6_color_addr_list // the address of a list of dest addrs
// change color of previous frame to be more faint
.word $FFFF // stream command marker
.byte $01, WG_DIM_COLOR // new source byte is color
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f5_color_addr_list // the address of a list of dest addrs
// change color of two frames back
.word $FFFF // stream command marker
.byte $FE // background color is source byte
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f4_color_addr_list // the address of a list of dest addrs
// end the frame
.word $FFFF // stream command marker
.byte $FF // stream quit command
wind_glimmer_stream_frame_7:
// no new characters to screen mem for the frame
// no new colors for new chars this frame because no new chars
// change color of previous two frames frame to be background color
.word $FFFF // stream command marker
.byte $FE // new source byte is bg color
// one frame back
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f6_color_addr_list // the address of a list of dest addrs
// change color of two frames back
.word $FFFF // command marker
.byte $03 // dest list command
.word wg_f5_color_addr_list // the address of a list of dest addrs
// end the frame
.word $FFFF // stream command marker
.byte $FF // stream quit command