forked from lilybeevee/bab-be-u
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.lua
8428 lines (8395 loc) · 195 KB
/
values.lua
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
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
RELEASE_BUILD = false
DEFAULT_WIDTH = 800
DEFAULT_HEIGHT = 600
ANIM_TIMER = 180
MAX_MOVE_TIMER = 80
INPUT_DELAY = 150
MAX_UNDO_DELAY = 150
MIN_UNDO_DELAY = 50
UNDO_SPEED = 5
UNDO_DELAY = MAX_UNDO_DELAY
repeat_keys = {"wasd","udlr","numpad","ijkl","space","undo"}
is_mobile = love.system.getOS() == "Android" or love.system.getOS() == "iOS"
--is_mobile = true
PACK_UNIT_V1 = "hhhb" -- TILE, X, Y, DIR
PACK_UNIT_V2 = "hhhhbs" -- ID, TILE, X, Y, DIR, SPECIALS
PACK_UNIT_V3 = "llhhbs" -- ID, TILE, X, Y, DIR, SPECIALS
PACK_SPECIAL_V2 = "ss" -- KEY, VALUE
profile = {
name = "bab"
}
local defaultsettings = {
music_on = true,
sfx_on = true,
particles_on = true,
shake_on = true,
scribble_anim = true,
epileptic = false,
game_scale = "auto",
grid_lines = false,
mouse_lines = false,
stopwatch_effect = true,
fullscreen = false,
focus_pause = false,
level_compression = "zlib",
draw_editor_lins = true,
infomode = false,
scroll_on = true,
themes = true,
}
if love.filesystem.read("Settings.bab") ~= nil then
settings = json.decode(love.filesystem.read("Settings.bab"))
for i in pairs(defaultsettings) do
if settings[i] == nil then
settings[i] = defaultsettings[i]
end
end
else
settings = defaultsettings
end
debug_view= false
superduperdebugmode = false
debug_values = {
}
rainbowmode = false
displayids = false
if love.filesystem.getInfo("build_number") ~= nil then
build_number = love.filesystem.read("build_number")
else
build_number = "HEY, READ THE README!"
end
ruleparts = {"subject", "verb", "object"}
dirs = {{1,0},{0,1},{-1,0},{0,-1}}
dirs_by_name = {
right = 1,
down = 2,
left = 3,
up = 4
}
dirs_by_offset = {}
dirs_by_offset[-1],dirs_by_offset[0],dirs_by_offset[1] = {},{},{}
dirs_by_offset[1][0] = 1
dirs_by_offset[0][1] = 2
dirs_by_offset[-1][0] = 3
dirs_by_offset[0][-1] = 4
dirs8 = {{1,0},{1,1},{0,1},{-1,1},{-1,0},{-1,-1},{0,-1},{1,-1}}
dirs8_by_name = {
"right",
"downright",
"down",
"downleft",
"left",
"upleft",
"up",
"upright",
}
dirs8_by_name_set = {};
for _,dir in ipairs(dirs8_by_name) do
dirs8_by_name_set[dir] = true
end
dirs8_by_offset = {}
dirs8_by_offset[-1],dirs8_by_offset[0],dirs8_by_offset[1] = {},{},{}
dirs8_by_offset[1][0] = 1
dirs8_by_offset[1][1] = 2
dirs8_by_offset[0][1] = 3
dirs8_by_offset[-1][1] = 4
dirs8_by_offset[-1][0] = 5
dirs8_by_offset[-1][-1] = 6
dirs8_by_offset[0][-1] = 7
dirs8_by_offset[1][-1] = 8
TILE_SIZE = 32
mapwidth = 21
mapheight = 15
map_music = "bab be go"
map_ver = 1
default_map = '{"map":"eJwlzEEOgCAMRNEpGNSwEriLqPe/l39Cunjpb9Kk8GQlE7ArNmVvt04VxQTiA4djdfyA+AKx61pfmmnAbah7+wFtgAJz","width":21,"music":"bab be go","version":1,"height":15,"author":"","name":"new level","palette":"default"}'
main_palette_for_colour = {
blacc = {0, 4},
reed = {2, 2},
orang = {2, 3},
yello = {2, 4},
grun = {5, 2},
cyeann = {1, 4},
bleu = {1, 3},
purp = {3, 1},
whit = {0, 3},
pinc = {4, 1},
graey = {0, 1},
brwn = {6, 0},
}
color_names = {"reed", "orang", "yello", "grun", "cyeann", "bleu", "purp", "pinc", "whit", "blacc", "graey", "brwn"}
colour_for_palette = {}
colour_for_palette[0] = {}
colour_for_palette[0][0] = "blacc"
colour_for_palette[0][1] = "graey"
colour_for_palette[0][2] = "graey"
colour_for_palette[0][3] = "whit"
colour_for_palette[0][4] = "blacc"
colour_for_palette[1] = {}
colour_for_palette[1][0] = "blacc"
colour_for_palette[1][1] = "bleu"
colour_for_palette[1][2] = "bleu"
colour_for_palette[1][3] = "bleu"
colour_for_palette[1][4] = "cyeann"
colour_for_palette[2] = {}
colour_for_palette[2][0] = "reed"
colour_for_palette[2][1] = "reed"
colour_for_palette[2][2] = "reed"
colour_for_palette[2][3] = "orang"
colour_for_palette[2][4] = "yello"
colour_for_palette[3] = {}
colour_for_palette[3][0] = "pinc"
colour_for_palette[3][1] = "purp"
colour_for_palette[3][2] = "purp"
colour_for_palette[3][3] = "purp"
colour_for_palette[3][4] = nil
colour_for_palette[4] = {}
colour_for_palette[4][0] = "pinc"
colour_for_palette[4][1] = "pinc"
colour_for_palette[4][2] = "pinc"
colour_for_palette[4][3] = nil
colour_for_palette[4][4] = nil
colour_for_palette[5] = {}
colour_for_palette[5][0] = "grun"
colour_for_palette[5][1] = "grun"
colour_for_palette[5][2] = "grun"
colour_for_palette[5][3] = "grun"
colour_for_palette[5][4] = nil
colour_for_palette[6] = {}
colour_for_palette[6][0] = "brwn"
colour_for_palette[6][1] = "brwn"
colour_for_palette[6][2] = "brwn"
colour_for_palette[6][3] = "brwn"
colour_for_palette[6][4] = "blacc"
custom_letter_quads = {
{}, -- single letters will always use actual letter units, not custom letter units
{
{love.graphics.newQuad(0, 0, 16, 32, 64, 64), 0, 0},
{love.graphics.newQuad(16, 0, 16, 32, 64, 64), 16, 0},
},
{
{love.graphics.newQuad(32, 0, 16, 16, 64, 64), 0, 0},
{love.graphics.newQuad(48, 0, 16, 16, 64, 64), 16, 0},
{love.graphics.newQuad(0, 48, 32, 16, 64, 64), 0, 16},
},
{
{love.graphics.newQuad(32, 0, 16, 16, 64, 64), 0, 0},
{love.graphics.newQuad(48, 0, 16, 16, 64, 64), 16, 0},
{love.graphics.newQuad(32, 16, 16, 16, 64, 64), 0, 16},
{love.graphics.newQuad(48, 16, 16, 16, 64, 64), 16, 16},
},
{
{love.graphics.newQuad(0, 32, 16, 16, 64, 64), 0, 0},
{love.graphics.newQuad(16, 32, 16, 16, 64, 64), 16, 0},
{love.graphics.newQuad(32, 48, 11, 16, 64, 64), 0, 16},
{love.graphics.newQuad(43, 48, 10, 16, 64, 64), 11, 16},
{love.graphics.newQuad(53, 48, 11, 16, 64, 64), 21, 16},
},
{
{love.graphics.newQuad(32, 32, 11, 16, 64, 64), 0, 0},
{love.graphics.newQuad(43, 32, 10, 16, 64, 64), 11, 0},
{love.graphics.newQuad(53, 32, 11, 16, 64, 64), 21, 0},
{love.graphics.newQuad(32, 48, 11, 16, 64, 64), 0, 16},
{love.graphics.newQuad(43, 48, 10, 16, 64, 64), 11, 16},
{love.graphics.newQuad(53, 48, 11, 16, 64, 64), 21, 16},
},
}
selector_grid_contents = {
-- page 1: default
{
0, "text_be", "text_&", "text_got", "text_n't", "text_every1", "text_no1", "text_text", "text_wurd", "text_txtify", "text_sublvl", "text_wait...", "text_mous", "text_clikt", "text_nxt", "text_stay ther", "lvl", "text_lvl",
"bab", "text_bab", "text_u", "kee", "text_kee", "text_for dor", "text_goooo", "text_icy", "text_icyyyy", "text_behin u", "text_moar", "text_sans", "text_liek", "text_loop", "lin", "text_lin", "selctr", "text_selctr",
"keek", "text_keek", "text_walk", "dor", "text_dor", "text_ned kee", "text_frens", "text_pathz", "text_groop", "text_u too", "text_u tres", "text_xwx", "text_haet", "text_mayb", "text_an", "text_that", "text_ignor", "text_...",
"flog", "text_flog", "text_:)", "colld", "text_colld", "text_fridgd", "text_direction", "text_ouch", "text_slep", "text_protecc", "text_sidekik", "text_brite", "text_lit", "text_tranparnt", "text_torc", "text_vs", "text_nuek", "text_''",
"roc", "text_roc", "text_go away pls", "laav", "text_laav", "text_hotte","text_visit fren", "text_w/fren", "text_arond", "text_frenles", "text_copkat", "text_za warudo", "text_timles", "text_behind", "text_beside", "text_look away", "text_notranform", "this",
"wal", "text_wal", "text_no go", "l..uv", "text_l..uv", "gras", "text_gras", "text_creat", "text_look at", "text_spoop", "text_yeet", "text_turn cornr", "text_corekt", "text_go arnd", "text_mirr arnd", "text_past", 0, "text_sing",
"watr", "text_watr", "text_no swim", "meem", "text_meem", "dayzy", "text_dayzy", "text_snacc", "text_seen by" , "text_stalk", "text_moov", "text_folo wal", "text_rong", "text_her", "text_thr", "text_rithere", "text_the", 0,
"skul", "text_skul", "text_:(", "til", "text_til", "hurcane", "text_hurcane", "gunne", "text_gunne", "wog", "text_wog", "text_zip", "text_shy...", "text_munwalk", "text_sidestep", "text_diagstep", "text_hopovr", "text_knightstep",
"boux", "text_boux", "text_come pls", "os", "text_os", "bup", "text_bup", "han", "text_han", "fenss", "text_fenss", 0, 0, "hol", "text_hol", "text_poor toll", "text_blacc", "text_reed",
"bellt", "text_bellt", "text_go", "tre", "text_tre", "piler", "text_piler", "hatt", "text_hatt", "hedg", "text_hedg", 0, 0, "rif", "text_rif", "text_glued", "text_whit", "text_orang",
"boll", "text_boll", "text_:o", "frut", "text_frut", "kirb", "text_kirb", "katany", "text_katany", "metl", "text_metl", 0, 0, 0, 0, "text_enby", "text_colrful", "text_yello",
"clok", "text_clok", "text_try again", "text_no undo", "text_undo", "slippers", "text_slippers", "firbolt", "text_firbolt", "jail", "text_jail", 0, 0, 0, 0, "text_tranz", "text_rave", "text_grun",
"splittr", "text_splittr", "text_split", "steev", "text_steev", "boy", "text_boy", "icbolt", "text_icbolt", "platfor", "text_platfor", "chain", "text_chain", 0, 0, "text_gay", "text_stelth", "text_cyeann",
"chekr", "text_chekr", "text_diag", "text_ortho", "text_haet flor", "arro", "text_arro", "text_go my way", "text_spin", "text_no turn", "text_stubbn", "text_rotatbl", 0, 0, "text_pinc", "text_qt", "text_paint", "text_bleu",
"clowd", "text_clowd", "text_flye", "text_tall", "text_haet skye", "ghost fren", "text_ghost fren", "robobot", "text_robobot", "sparkl", "text_sparkl", "spik", "text_spik", "spiky", "text_spiky", "bordr", "text_bordr", "text_purp",
nil
},
-- page 2: letters
{
"letter_a","letter_b","letter_c","letter_d","letter_e","letter_f","letter_g","letter_h","letter_i","letter_j","letter_k","letter_l","letter_m","letter_n","letter_o","letter_p","letter_q","letter_r",
"letter_s","letter_t","letter_u","letter_v","letter_w","letter_x","letter_y","letter_z","letter_.","letter_colon","letter_parenthesis","letter_'","letter_/","letter_1","letter_2","letter_3","letter_4","letter_5",
0,0,0,0,0,0,0,0,0,"letter_;",0,0,0,"letter_6","letter_7","letter_8","letter_9","letter_o",
"letter_go","letter_come","letter_pls","letter_away","letter_my","letter_no","letter_way","letter_ee","letter_fren","letter_ll","letter_bolt","letter_ol",0,0,0,0,0,"text_lethers",
"text_c_sharp","text_d_sharp","text_f_sharp","text_g_sharp","text_a_sharp","text_sharp","text_flat",0,0,0,0,0,0,0,0,0,0,0,
},
-- page 3: ui / instructions
{
0 ,"ui_w","ui_e","ui_r",0,0,0,"ui_i",0,0,0,0,0,0,0,"ui_7","ui_8","ui_9",
"ui_a","ui_s","ui_d",0,0,0,"ui_j","ui_k","ui_l",0,0,0,0,0,0,"ui_4","ui_5","ui_6",
"ui_z",0,0,0,0,0,0,0,0,0,0,0,0,0,0,"ui_1","ui_2","ui_3",
0,0,0,0,"ui_space",0,0,0,0,0,0,0,0,0,0,"ui_arrow","ui_0",0,
"text_press","text_f1","text_play","text_f2","text_edit","ui_left click","ui_right click",0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,"ui_walk",0,0,"ui_reset",0,0,"ui_undo",0,0,"ui_wait",0,0,"ui_activat",0,0,"ui_clik",0,0,0,0,
},
-- page 4: characters and special objects
{
"bab","text_bab","kat","text_kat","flof","text_flof","bunmy","text_bunmy","toby","text_toby","temmi","text_temmi",0,0,"selctr","text_selctr","lvl","text_lvl",
"keek","text_keek","creb","text_creb","shrim","text_shrim","moo","text_moo",0,0,0,0,0,0,"this","text_mous","lin","text_lin",
"meem","text_meem","statoo","text_statoo","flamgo","text_flamgo","migri","text_migri",0,0,0,0,0,0,"text_text","text_frens","text_groop","text_pathz",
"skul","text_skul","beeee","text_beeee","gul","text_gul","kva","text_kva",0,0,0,0,0,0,"text_lethers","text_every1","text_every2","text_every3",
"ghost fren","text_ghost fren","fishe","text_fishe","starrfishe","text_starrfishe","pidgin","text_pidgin",0,0,0,0,0,0,0,0,"text_gang","text_no1",
"robobot","text_robobot","snek","text_snek","sneel","text_sneel","swan","text_swan",0,0,0,0,0,0,0,0,0,0,
"wog","text_wog","bog","text_bog","enbybog","text_enbybog","spoder","text_spoder",0,0,0,0,0,0,0,0,0,0,
"kirb","text_kirb","ripof","text_ripof","cavebab","text_cavebab","detox","text_detox",0,0,0,0,0,0,0,0,0,0,
"bup","text_bup","butflye","text_butflye","boooo","text_boooo",0,0,0,0,0,0,0,0,0,0,0,0,
"boy","text_boy","wurm","text_wurm","madi","text_madi","angle","text_angle",0,0,0,0,0,0,"lila","text_lila","tot","text_tot",
"steev","text_steev","ratt","text_ratt","badi","text_badi","debil","text_debil",0,0,0,0,0,0,"pata","text_pata","jill","text_jill",
"han","text_han","iy","text_iy","lisp","text_lisp","paw","text_paw",0,0,0,0,0,0,"larry","text_larry","zsoob","text_zsoob",
"snoman","text_snoman","pingu","text_pingu","der","text_der","ginn","text_ginn",0,0,0,0,0,0,0,0,"o","text_o",
"kapa","text_kapa","urei","text_urei","ryugon","text_ryugon","sham","text_sham",0,0,0,0,0,0,0,0,0,0,
"os","text_os","hors","text_hors","mimi","text_mimi","err","text_err",0,0,0,0,0,0,0,0,0,0,
},
-- page 5: inanimate objects
{
"wal","text_wal","bellt","text_bellt","hurcane","text_hurcane","buble","text_buble","katany","text_katany","petnygrame","text_petnygrame","firbolt","text_firbolt","hol","text_hol","golf","text_golf",
"til","text_til","arro","text_arro","clowd","text_clowd","snoflak","text_snoflak","gunne","text_gunne","scarr","text_scarr","litbolt","text_litbolt","rif","text_rif","paint","text_paint",
"watr","text_watr","colld","text_colld","rein","text_rein","icecub","text_icecub","slippers","text_slippers","pudll","text_pudll","icbolt","text_icbolt","win","text_win","press","text_press",
"laav","text_laav","dor","text_dor","kee","text_kee","roc","text_roc","hatt","text_hatt","extre","text_extre","poisbolt","text_poisbolt","smol","text_smol","pumkin","text_pumkin",
"gras","text_gras","algay","text_algay","flog","text_flog","boux","text_boux","knif","text_knif","heg","text_heg","timbolt","text_timbolt","tor","text_tor","grav","text_grav",
"hedg","text_hedg","banboo","text_banboo","boll","text_boll","l..uv","text_l..uv","wips","text_wips","pepis","text_pepis","do$h","text_do$h","dling","text_dling","pen","text_pen",
"metl","text_metl","vien","text_vien","leef","text_leef","karot","text_karot","fir","text_fir","eeg","text_eeg","foreeg","text_foreeg","forbeeee","text_forbeeee","cil","text_cil",
"jail","text_jail","ladr","text_ladr","pallm","text_pallm","coco","text_coco","rouz","text_rouz","noet","text_noet","lili","text_lili","weeb","text_weeb","3den","text_3den",
"fenss","text_fenss","platfor","text_platfor","tre","text_tre","stum","text_stum","dayzy","text_dayzy","lie","text_lie","reffil","text_reffil","of in","text_of in","ches","text_ches",
"cobll","text_cobll","spik","text_spik","frut","text_frut","fungye","text_fungye","red","text_red","lie/8","text_lie/8","vlc","text_vlc","foru","text_foru","rod","text_rod",
"wuud","text_wuud","spiky","text_spiky","parsol","text_parsol","clok","text_clok","ufu","text_ufu","rockit","text_rockit","swim","text_swim","yanying","text_yanying","casete","text_casete",
"brik","text_brik","sparkl","text_sparkl","sanglas","text_sanglas","bullb","text_bullb","son","text_son","muun","text_muun","bac","text_bac","warn","text_warn","piep","text_piep",
"san","text_san","piler","text_piler","sancastl","text_sancastl","shel","text_shel","starr","text_starr","cor","text_cor","byc","text_byc","gorder","text_gorder","tuba","text_tuba",
"glas","text_glas","bom","text_bom","sine","text_sine","kar","text_kar","can","text_can","ger","text_ger","sirn","text_sirn","chain","text_chain","reflecr","text_reflecr",
"bordr","text_bordr","wut","text_wut","wat","text_wat","splittr","text_splittr","toggl","text_toggl","bon","text_bon","battry","text_battry","chekr","text_chekr","sloop","text_sloop",
},
-- page 6: more inanimate objects
{
"gato","text_gato","fube","text_fube","tronk","text_tronk",0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,"wan","text_wan","mug","text_mug","die","text_die",0,0,0,0,0,0,0,0,0,0,
"sno","text_sno","bel","text_bel","wres","text_wres","bowie","text_bowie","sant","text_sant","canedy","text_canedy","bolble","text_bolble","now","text_now","cooky","text_cooky",
0,0,"pot","text_pot","sweep","text_sweep",0,0,"which","text_which","corndy","text_corndy",0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
},
-- page 7: properties, verbs and conditions
{
"text_be","text_&","text_got","text_creat","text_snacc","text_spoop","text_copkat","text_moov","text_yeet","text_liek","text_haet","text_stalk","text_ignor","text_paint","text_vs","text_sing","text_soko","text_look at",
"text_u","text_u too","text_u tres","text_y'all","text_walk","text_:)","text_no swim","text_ouch","text_protecc",0,"text_nxt","text_stay ther",0,"text_giv",0,"text_rp",0,"text_look away",
"text_go","text_goooo","text_icy","text_icyyyy",0,"text_:(","text_ned kee","text_for dor","text_wurd",0,"text_sublvl","text_loop","text_oob","text_frenles","text_timles","text_lit","text_corekt","text_rong",
"text_no go","text_go away pls","text_come pls","text_sidekik","text_diagkik","text_:o","text_hotte","text_fridgd","text_txtify",0,"text_dragbl","text_no drag",0,"text_clikt","text_past","text_wun","text_an","text_mayb",
"text_visit fren","text_slep","text_shy...","text_behin u",0,"text_xwx","text_moar","text_split","text_thingify",0,"text_rythm",0,0,"text_wait...","text_samefloat","text_samepaint","text_sameface",0,
"text_flye","text_tall","text_haet skye","text_haet flor",0,"text_;d","text_gone","text_nuek","text_notranform",0,0,0,0,"text_w/fren","text_arond","text_sans","text_seen by","text_behind",
"text_diag","text_ortho","text_go my way","text_zip",0,"text_B)","text_cool",0,0,0,0,0,0,"text_that","text_that be","text_that got",0,"text_beside",
"text_turn cornr","text_folo wal","text_hopovr","text_reflecc",0,0,0,0,0,0,0,0,0,0,0,0,0,0,
"text_munwalk","text_sidestep","text_diagstep","text_knightstep",0,0,0,0,0,0,0,0,0,0,0,0,0,"text_reed",
"text_spin","text_rotatbl","text_noturn","text_stukc",0,0,0,0,0,0,0,0,0,0,0,0,"text_enby","text_orang",
"text_upleft","text_up","text_upright","text_big",0,0,0,0,0,0,0,0,0,0,0,"text_brwn","text_tranz","text_yello",
"text_left","text_direction","text_right",0,0,0,0,0,0,0,0,0,0,0,0,"text_blacc","text_gay","text_grun",
"text_downleft","text_down","text_downright",0,0,"text_try again","text_no undo","text_undo","text_za warudo","text_brite",0,0,0,0,0,"text_graey","text_qt","text_cyeann",
"text_every1","text_every2","text_every3","text_lethers",0,"text_poor toll","text_go arnd","text_mirr arnd","text_glued","text_torc",0,0,0,0,0,"text_whit","text_pinc","text_bleu",
"text_...","text_''",0,0,0,"text_her","text_thr","text_rithere","text_the","text_tranparnt",0,0,0,0,"text_stelth","text_colrful","text_rave","text_purp",
},
}
tile_grid_width = 18
tile_grid_height = 15
--[[
layer list:
1: bordr, and nothing else
2: full tile things (wal, watr, laav)
3: other "low" objects (gras, chekr)
4: bg objects (extre, pudll)
5: bg particles (sparkl, rein)
6: collectables (flog, boll)
7: objects that take a lot of area (boux, luv)
8: rest of objects
9: bg characters (skul)
10: characters that take a lot of area (boooo, lila)
11: rest of characters
20: text
21: text that is slightly bigger than other text (thicc, rithere)
22: fg objects (jail)
23: lins
24: lvls
25: selctr
100: the real bab dictator
]]
tiles_list = {
-- 1
{
name = "bab",
sprite = "bab",
type = "object",
color = {0, 3},
layer = 11,
rotate = true,
sing = "s_doo",
features = { sans = {x=22, y=10, w=2, h=2} },
tags = {"chars", "baba"},
desc = "its bab bruh",
pronouns = {"she","her"},
},
-- 2
{
name = "text_bab",
sprite = "text_bab",
metasprite = "text_bab meta",
type = "text",
texttype = {object = true},
color = {4, 1},
layer = 20,
tags = {"chars", "baba"},
desc = "\"BAB\". thats what it says"
},
-- 3
{
name = "text_be",
sprite = "text_be",
type = "text",
texttype = {verb = true, verb_class = true, verb_property = true},
color = {0, 3},
layer = 20,
tags = {"is"},
desc = "BE (Verb): Causes the subject to become an object or have a property.",
},
-- 4
{
name = "text_u",
sprite = "text_u",
type = "text",
texttype = {property = true},
color = {4, 1},
layer = 20,
tags = {"you","p1", "player"},
desc = "U: Controlled by you, the player!",
},
-- 5
{
name = "wal",
sprite = "wal",
type = "object",
color = {1, 1},
layer = 2,
tags = {"wall"},
desc = "ston briks",
pronouns = {"it"},
},
-- 6
{
name = "text_wal",
sprite = "text_wal",
metasprite = "text_wal meta",
type = "text",
texttype = {object = true},
color = {0, 1},
layer = 20,
tags = {"wall"},
desc = "uigi isn't gonna be in smash"
},
-- 7
{
name = "text_no go",
sprite = "text_nogo",
type = "text",
texttype = {property = true},
color = {5, 1},
layer = 20,
tags = {"stop"},
desc = "NO GO: Can't be entered by objects. Overrides GO AWAY PLS!",
},
-- 8
{
name = "roc",
sprite = "roc",
type = "object",
color = {6, 2},
layer = 7,
sing = "s_bdrum",
tags = {"rock"},
desc = "roc: not a bord"
},
-- 9
{
name = "text_roc",
sprite = "text_roc",
metasprite = "text_roc meta",
type = "text",
texttype = {object = true},
color = {6, 1},
layer = 20,
tags = {"rock"},
},
-- 10
{
name = "text_go away pls",
sprite = "text_goaway",
type = "text",
texttype = {property = true},
color = {6, 1},
layer = 20,
tags = {"push"},
desc = "GO AWAY: Pushed by movement into its tile.",
},
-- 11
{
name = "dor",
sprite = "dor",
type = "object",
color = {2, 2},
layer = 3,
tags = {"door"},
desc = "for door",
},
-- 12
{
name = "text_dor",
sprite = "text_dor",
metasprite = "text_dor meta",
type = "text",
texttype = {object = true},
color = {2, 2},
layer = 20,
tags = {"door"}
},
-- 13
{
name = "text_ned kee",
sprite = "text_nedkee",
type = "text",
texttype = {property = true},
color = {2, 2},
layer = 20,
tags = {"shut"},
desc = "NED KEE: When a NED KEE and FOR DOR unit move into each other or are on each other, they are both destroyed.",
},
-- 14
{
name = "kee",
sprite = "kee",
type = "object",
color = {2, 4},
layer = 8,
rotate = true,
sing = "s_hiclose",
tags = {"key"},
desc = "needs key",
},
-- 15
{
name = "text_kee",
sprite = "text_kee",
metasprite = "text_kee meta",
type = "text",
texttype = {object = true},
color = {2, 4},
layer = 20,
tags = {"key"},
},
-- 16
{
name = "text_for dor",
sprite = "text_fordor",
type = "text",
texttype = {property = true},
color = {2, 4},
layer = 20,
tags = {"open"},
desc = "FOR DOR: When a NED KEE and FOR DOR unit move into each other or are on each other, they are both destroyed.",
},
-- 17
{
name = "text_&",
sprite = "text_and",
type = "text",
texttype = {["and"] = true}, -- and is a reserved word
color = {0, 3},
layer = 20,
alias = {"ampersand"},
tags = {"and"},
desc = "&: Joins multiple conditions, subjects or objects together in a rule. Rules with stacked text and &s don't work like in baba, be sure to experiment!",
},
-- 18
{
name = "flog",
sprite = "flog",
type = "object",
color = {2, 4},
layer = 6,
sing = "s_marim",
tags = {"flag"},
desc = "i want 1!!!",
},
-- 19
{
name = "text_flog",
sprite = "text_flog",
type = "text",
texttype = {object = true},
color = {2, 4},
layer = 20,
tags = {"flag"},
},
-- 20
{
name = "text_:)",
sprite = "text_good",
type = "text",
texttype = {property = true},
color = {2, 4},
layer = 20,
features = { sans = {x=21, y=6, w=3, h=4} },
tags = {"win", "smiley", "face", "happy", "yay"},
desc = ":): At end of turn, if U is on :) and survives, U R WIN!",
},
-- 21
{
name = "til",
sprite = "til",
type = "object",
color = {1, 0},
layer = 3,
tags = {"tile"},
desc = "it goes under your feet"
},
-- 22
{
name = "watr",
sprite = "watr",
type = "object",
color = {1, 3},
layer = 2,
desc = "splish sploosh",
tags = {"water"},
},
-- 23
{
name = "text_watr",
sprite = "text_watr",
type = "text",
texttype = {object = true},
color = {1, 3},
layer = 20,
tags = {"water"},
},
-- 24
{
name = "text_no swim",
sprite = "text_no swim",
type = "text",
texttype = {property = true},
color = {1, 3},
layer = 20,
tags = {"sink"},
desc = "NO SWIM: At end of turn, if a NO SWIM unit is touching another object, all objects on the tile are destroyed.",
},
-- 25
{
name = "text_got",
sprite = "text_got",
type = "text",
texttype = {verb = true, verb_class = true},
color = {0, 3},
layer = 20,
tags = {"has"},
desc = "GOT (Verb): Causes the subject to drop the object when destroyed.",
},
-- 26
{
name = "text_colrful",
sprite = "text_colrful",
type = "text",
texttype = {property = true},
color = {0, 3},
layer = 20,
desc = "COLRFUL: Causes the unit to appear a variety of colours.",
},
-- 27
{
name = "text_reed",
sprite = "text_reed_cond",
sprite_transforms = {
property = "text_reed"
},
type = "text",
texttype = {cond_prefix = true, property = true, class_prefix = true},
color = {2, 2},
layer = 20,
tags = {"colors", "colours", "red"},
desc = "REED: Causes the unit to appear red. Persistent and can be used as a prefix condition.",
},
-- 28
{
name = "text_bleu",
sprite = "text_bleu_cond",
sprite_transforms = {
property = "text_bleu"
},
type = "text",
texttype = {cond_prefix = true, property = true, class_prefix = true},
color = {1, 3},
layer = 20,
tags = {"colors", "colours", "blue"},
desc = "BLEU: Causes the unit to appear blue. Persistent and can be used as a prefix condition.",
},
-- 29
{
name = "text_tranz",
sprite = "text_tranz-colored",
type = "text",
texttype = {property = true},
color = {255, 255, 255},
layer = 20,
tags = {"trans"},
desc = "TRANZ: Causes the unit to appear pink, white and baby blue. GAY objects are pinc, whit, and cyeann, and not any other colors.",
},
-- 30
{
name = "text_gay",
sprite = "text_gay-colored",
type = "text",
texttype = {property = true},
color = {255, 255, 255},
layer = 20,
desc = "GAY: Causes the unit to appear rainbow coloured. GAY objects are reed, orang, yello, grun, bleu, and purp, and not any other colors.",
},
-- 31
{
name = "text_mous",
sprite = "text_mous",
type = "text",
texttype = {object = true},
color = {3, 3},
layer = 20,
tags = {"mouse","cursor"},
desc = "MOUS: Refers to the mouse cursor. You can create, destroy and apply properties to mouse cursors!",
},
-- 32
{
name = "text_boux",
sprite = "text_boux",
type = "text",
texttype = {object = true},
color = {6, 1},
layer = 20,
tags = {"box"},
},
-- 33
{
name = "boux",
sprite = "boux",
type = "object",
color = {6, 2},
layer = 7,
sing = "s_sdrum",
desc = "ce n'est pas une boîte, c'est quelque chose DE MIEUX",
tags = {"box"},
},
-- 34
{
name = "text_skul",
sprite = "text_skul",
type = "text",
texttype = {object = true},
color = {2, 1},
layer = 20,
tags = {"skull"},
},
-- 35
{
name = "skul",
sprite = "skul",
type = "object",
color = {2, 1},
layer = 9,
rotate = true,
sing = "s_saw",
features = { sans = {x=21, y=8, w=4, h=4} },
tags = {"skull"},
desc = "evillllll",
},
-- 36
{
name = "text_laav",
sprite = "text_laav",
type = "text",
texttype = {object = true},
color = {2, 3},
layer = 20,
desc = "very hot. not hotte tho unless u make it",
tags = {"lava"},
},
-- 37
{
name = "laav",
sprite = "watr",
type = "object",
color = {2, 3},
layer = 2,
tags = {"lava"},
},
-- 38
{
name = "text_keek",
sprite = "text_keek",
type = "text",
texttype = {object = true},
color = {2, 2},
layer = 20,
tags = {"keke", "chars"},
},
-- 39
{
name = "keek",
sprite = "keek",
type = "object",
color = {2, 2},
layer = 11,
rotate = true,
sing = "s_saw",
features = { sans = {x=19, y=7, w=2, h=2} },
tags = {"keke", "chars"},
desc = "babs bff",
pronouns = {"they","them"}, --i hope i'm remembering properly
},
-- 40
{
name = "text_meem",
sprite = "text_meem",
type = "text",
texttype = {object = true},
color = {3, 1},
layer = 20,
tags = {"chars"},
},
-- 41
{
name = "meem",
sprite = "meem",
type = "object",
color = {3, 1},
layer = 11,
rotate = true,
sing = "s_organ",
features = { sans = {x=18, y=3, w=2, h=2} },
tags = {"chars"},
desc = "meem is the true philosopher of our time. babs 3ff",
pronouns = {"he","him"},
},
-- 42
{
name = "text_til",
sprite = "text_til",
metasprite = "text_til meta",
type = "text",
texttype = {object = true},
color = {0, 1},
layer = 20,
tags = {"tile"},
},
-- 43
{
name = "text_text",
sprite = "text_txt",
metasprite = "text_txt meta",
type = "text",
texttype = {object = true},
color = {4, 1},
layer = 20,
tags = {"txt"},
desc = "TXT: An object class referring to all text objects, or just a specific one if you write e.g. BAB TXT BE GAY.",
},
-- 44
{
name = "text_os",
sprite = "text_os",
type = "text",
texttype = {object = true},
color = {4, 1},
layer = 20,
tags = {"apple", "android", "windows", "linux", "operating system"},
},
-- 45
{
name = "os",
sprite = "os",
type = "object",
color = {0, 3},
layer = 10,
rotate = "true",
sing = "bit2",
features = { sans = {x=14, y=8, w=2, h=2} },
tags = {"apple", "android", "windows", "linux", "operating system"},
desc = "OS: Its sprites changes with the user's Operating System!",
},
-- 46
{
name = "text_slep",
sprite = "text_slep",
type = "text",
texttype = {property = true},
color = {1, 3},
layer = 20,
tags = {"sleep"},
desc = "SLEP: SLEP units can't move due to being U, WALK, COPKAT or SPOOPed.",
},
-- 47
{
name = "l..uv",
sprite = "luv",
type = "object",
color = {4, 2},
layer = 7,
tags = {"love"},
desc = "makes up the very fabric of reality of bab be u"
},
-- 48
{
name = "text_l..uv",
sprite = "text_luv",
type = "text",
texttype = {object = true},
color = {4, 2},
layer = 20,
tags = {"love"},
desc = "LÜV: To use with letters, you need an umlaut!",
},
-- 49
{
name = "frut",
sprite = "frut",
type = "object",
color = {2, 2},
layer = 6,
rotate = "true",
tags = {"fruit", "apple", "plants", "food"},
desc = "babs favorite snacc. not to be confused with OS appl",
},
-- 50
{
name = "text_frut",
sprite = "text_frut",
type = "text",
texttype = {object = true},
color = {2, 2},
layer = 20,
tags = {"fruit", "apple", "plants", "food"},
},
-- 51
{
name = "tre",
sprite = "tre",
type = "object",
color = {5, 2},
layer = 4,
rotate = "true",
tags = {"tree", "plants"},
},
-- 52
{
name = "text_tre",
sprite = "text_tre",
type = "text",
texttype = {object = true},
color = {5, 2},
layer = 20,
tags = {"tree", "plants"},
},
-- 53
{
name = "wog",
sprite = "wog",
type = "object",
color = {2, 4},
layer = 10,
rotate = "true",
sing = "s_strum",
features = { sans = {x=16, y=9, w=3, h=3} },
desc = "smol frens who own pointy tridents, play with explosives, and bake good cake. nobody knows how to describe more than one of them",
tags = {"wug", "chars", "bird"},
},
-- 54
{
name = "text_wog",
sprite = "text_wog",
type = "text",
texttype = {object = true},
color = {2, 4},
layer = 20,
desc = "wogs dream is to be a mad scientist and go evil with power using nothing but sheer linguistics. linguists' evil career options may be limited but that wont stop wog from trying their best",
tags = {"wug", "chars", "bird"},
},
--tutorial sprites
-- 55
{
name = "text_press",
sprite = "tutorial_press",
type = "text",
texttype = {object = true},
color = {0, 3},
layer = 20,
desc = "PRESS: Make PRESS F2 <property> to do something upon pressing F. Only some properties, like :(, will work!"
},
-- 56
{
name = "text_f2",
sprite = "tutorial_f2",
type = "text",
texttype = {verb = true, verb_property = true},
color = {0, 3},
layer = 20,
desc = "F2: Used with PRESS.",
},
-- 57
{
name = "text_edit",
sprite = "tutorial_edit",
type = "text",
texttype = {property = true},
color = {0, 3},
layer = 20,
desc = "EDIT: Make PRESS F2 EDIT to unlock the level editor!",
tags = {"text_2edit"},
},
-- 58
{
name = "text_play",
sprite = "tutorial_play",
type = "text",
texttype = {property = true},
color = {0, 3},