bitsy-parser 0.710.1

A parser and utilities for working with Bitsy game data
Documentation
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
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565

{wvy}Underwater {rbw}Treasure{rbw}{wvy}

# BITSY VERSION 4.3

! ROOM_FORMAT 1

PAL 0
111,111,255
91,255,91
255,179,102

ROOM 0
m,g,h,h,i,0,g,h,h,h,h,h,h,h,i,j
n,0,0,0,0,e,0,0,0,0,0,0,0,c,0,k
n,0,0,0,0,d,0,0,0,0,0,0,0,g,i,k
n,g,h,i,0,e,0,g,h,i,0,0,0,0,0,k
n,0,0,0,0,d,0,0,0,0,0,0,0,0,0,k
n,0,0,0,0,e,0,0,0,0,0,0,0,0,0,k
n,0,0,0,0,d,0,0,0,0,0,0,0,0,0,k
n,0,0,0,0,e,0,0,0,0,0,0,0,0,0,k
n,0,0,0,0,d,0,0,0,0,0,0,0,g,i,k
n,0,0,0,0,e,0,0,0,0,0,0,0,0,0,k
n,0,0,0,0,d,0,0,0,0,0,0,0,0,0,k
n,0,0,0,0,e,0,0,0,0,0,0,0,0,0,k
n,g,h,i,0,d,0,0,0,0,0,g,h,i,0,k
n,0,0,0,0,e,0,0,0,0,0,0,0,0,0,k
o,c,a,c,a,f,a,c,a,c,0,c,a,a,0,l
b,b,b,b,b,b,b,b,b,b,b,b,b,b,b,b
WAL b,f,j,i,h,g,k,l,m,n,o
ITM 1 14,13
ITM 0 8,2
ITM 2 7,2
ITM 2 7,1
ITM 2 8,1
ITM 2 9,1
ITM 2 9,2
ITM 2 14,7
ITM 2 14,6
ITM 2 13,7
ITM 2 13,6
ITM 2 1,11
ITM 2 2,11
ITM 2 3,11
ITM 2 3,10
ITM 2 2,10
ITM 2 1,10
ITM 2 11,11
ITM 2 12,11
ITM 2 13,11
ITM 2 1,1
ITM 2 2,1
ITM 2 1,2
ITM 2 2,2
ITM 2 3,2
ITM 2 3,1
END 0 5,0
PAL 0

TIL a
00000000
00000000
00100010
01000100
00100010
01000100
00100010
01000100
>
00000000
00000000
10000100
01000010
00100100
01001000
10000100
01000100

TIL b
11111111
11111111
00000000
11111111
11111111
11111111
00000000
00000000

TIL c
00000000
00000000
10001000
01000100
10001000
01000100
10001000
01000100
>
00000000
00000000
01000100
00100010
00100100
01001000
00100100
01000100

TIL d
00100000
01010000
00100010
00000101
00000010
00010000
00101000
00010000
>
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000

TIL e
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
>
00100000
01010000
00100010
00000101
00000010
00010000
00101000
00010000

TIL f
00001000
00010100
00001000
00000000
00011100
00111110
01111001
01110001
>
00000000
00000000
00000000
00000000
00011100
00111110
01111001
01110001

TIL g
01111111
10000000
10111111
10000000
01111111
00000000
00000000
00000000

TIL h
11111111
00000000
11111111
00000000
11111111
00000000
00000000
00000000

TIL i
11111110
00000001
11111101
00000001
11111110
00000000
00000000
00000000

TIL j
00001110
00010001
00010101
00010101
00010101
00010101
00010101
00010101

TIL k
00010101
00010101
00010101
00010101
00010101
00010101
00010101
00010101

TIL l
00010101
00010101
00010101
00010101
00010101
00010101
00010001
00001110

TIL m
01110000
10101000
10101000
10101000
10101000
10101000
10101000
10101000

TIL n
10101000
10101000
10101000
10101000
10101000
10101000
10101000
10101000

TIL o
10101000
10101000
10101000
10101000
10101000
10101000
10001000
01110000

SPR A
00000000
00000000
00011100
10100010
11000101
11000001
10100010
00011100
>
00000000
00011100
10100010
11000101
11000010
10100010
00011100
00000000
POS 0 1,13

SPR a
00000000
00000000
01111110
01000010
01000010
01111110
00011000
00011000
DLG SPR_0
POS 0 10,14

SPR b
00000000
00000000
00000000
00000000
01011101
11101011
00111110
00010100
>
00000000
00000000
00000000
00000000
10111010
11010111
01111100
00101000
DLG SPR_1
POS 0 2,14

SPR c
00000000
00111100
01000010
01000010
01111110
00101000
01000100
00101000
>
00000000
00111100
01000010
01000010
01111110
00100100
00010010
00100100
DLG SPR_2
POS 0 8,13

SPR d
00111110
01000001
01010101
01010101
01000001
01000001
01000001
00111110
DLG SPR_3
POS 0 14,14

SPR e
00000000
00000000
00001000
00010100
00110110
01100011
00111110
00111110
DLG SPR_4
POS 0 14,1

SPR f
00000000
00000000
00000000
00111010
01011100
00111010
00000000
00000000
>
00000000
00000000
00000000
00111000
01011110
00111000
00000000
00000000
DLG SPR_5
POS 0 11,5

SPR g
00000000
00000000
00000000
00111010
01011100
00111010
00000000
00000000
>
00000000
00000000
00000000
00111000
01011110
00111000
00000000
00000000
DLG SPR_6
POS 0 14,10

SPR h
00000000
00000000
00000000
01011100
00111010
01011100
00000000
00000000
>
00000000
00000000
00000000
00011100
01111010
00011100
00000000
00000000
DLG SPR_7
POS 0 3,6

SPR i
00000000
00000000
00000000
01011100
00111010
01011100
00000000
00000000
>
00000000
00000000
00000000
00011100
00111010
00011100
00000000
00000000
DLG SPR_8
POS 0 4,1

ITM 0
00000000
00000000
00000000
00000000
00000000
00001000
00010100
00001000
NAME pearl
DLG ITM_0

ITM 1
00000000
00000000
00000000
00000000
00000000
00011100
00110110
00111110
NAME music box
DLG ITM_1

ITM 2
00000000
00000000
00000000
00011000
00100100
00101100
00100100
00011000
NAME gold coin

DLG ITM_0
You found a shiny pearl!

DLG SPR_0
"""
{wvy}Underwater {rbw}Treasure{rbw}{wvy} by Lucky Pixel.
Bitsy Jam November 2017 
(Theme: Bric-a-Brac) 
Challenged myself to make it in one hour!
"""

DLG SPR_1
"""
{
  - {item "pearl"} == 0 ?
    I seem to have lost my precious pearl. Can you please find it?
  - {item "pearl"} == 1 ?
    Thank you for finding my pearl!
}
"""

DLG SPR_2
"""
{
  - {item "music box"} == 0 ?
    I wish I had a music box to groove to.
  - {item "music box"} == 1 ?
    This music box is perfect!
  - {item "music box"} == 0 ?
    I hear music from down below.
}
"""

DLG ITM_1
You hear {wvy}{rbw}music{rbw}{wvy} playing within this box.

DLG SPR_3
"""
{
  - {item "music box"} == 0 ?
    I have something on my head.
  - {item "music box"} == 1 ?
    My head feels much better.
}
"""

DLG SPR_4
"""
{
  - {item "gold coin"} <= 20 ?
    (THE SHRINE OF LUCK)
    Collect all the coins.
  - {item "gold coin"} <= 24 ?
    {rbw}{wvy}Achievement Unlocked{wvy}{rbw}: All coins collected
}
"""

DLG SPR_5
It's really cool that you can swim backwards.Be careful not to hit yourself with something.

DLG SPR_6
"""
{
  - {item "gold coin"} == 0 ?
    You don't seem to have any gold coins.
  - {item "gold coin"} == 1 ?
    Nice you found a coin.
  - {item "gold coin"} >= 2 ?
    What are you going to do with all those coins? Buy some knick-knacks?
}
"""

DLG SPR_7
"""
{
  - {item "gold coin"} >= 1 ?
    Hey, let's flip a coin!!
{shuffle
  - Heads
  - Tails
}
}
"""

DLG SPR_8
The bubbles lead to the exit.

END 0
{wvy}Thank you for playing!{wvy}

VAR a
0