-
Notifications
You must be signed in to change notification settings - Fork 8
/
BOT.js
1731 lines (1534 loc) · 83.5 KB
/
BOT.js
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
var room = HBInit({
roomName: "Nome da Sala", // Define nome da sala
maxPlayers: 10, // Define número máximo de players na sala
noPlayer: true, // Tira o Host da sala
public: true, //Server aparece na lista pública
password: "Senha", // Define uma senha
geo: { "code": 'br', "lat": -12.9704, "lon": -38.5124 } //Geolocalização da sala
});
/* ----- ESTÁDIOS ----- */
/* ESTÁDIO 3X3 */
var stadiumx3 = `{
"name" : "Futsal x3 FAZo7",
"width" : 620,
"height" : 270,
"spawnDistance" : 350,
"bg" : { "type" : "hockey", "width" : 550, "height" : 240, "kickOffRadius" : 80, "cornerRadius" : 0 },
"vertexes" : [
/* 0 */ { "x" : 550, "y" : 240, "trait" : "ballArea" },
/* 1 */ { "x" : 550, "y" : -240, "trait" : "ballArea" },
/* 2 */ { "x" : 0, "y" : 270, "trait" : "kickOffBarrier" },
/* 3 */ { "x" : 0, "y" : 80, "bCoef" : 0.15, "trait" : "kickOffBarrier", "color" : "F8F8F8", "vis" : true, "curve" : 180 },
/* 4 */ { "x" : 0, "y" : -80, "bCoef" : 0.15, "trait" : "kickOffBarrier", "color" : "F8F8F8", "vis" : true, "curve" : 180 },
/* 5 */ { "x" : 0, "y" : -270, "trait" : "kickOffBarrier" },
/* 6 */ { "x" : -550, "y" : -80, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8", "pos" : [-700,-80 ] },
/* 7 */ { "x" : -590, "y" : -80, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8", "pos" : [-700,-80 ] },
/* 8 */ { "x" : -590, "y" : 80, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8", "pos" : [-700,80 ] },
/* 9 */ { "x" : -550, "y" : 80, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8", "pos" : [-700,80 ] },
/* 10 */ { "x" : 550, "y" : -80, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8", "pos" : [700,-80 ] },
/* 11 */ { "x" : 590, "y" : -80, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8", "pos" : [700,-80 ] },
/* 12 */ { "x" : 590, "y" : 80, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8", "pos" : [700,80 ] },
/* 13 */ { "x" : 550, "y" : 80, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8", "pos" : [700,80 ] },
/* 14 */ { "x" : -550, "y" : 80, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "F8F8F8", "pos" : [-700,80 ] },
/* 15 */ { "x" : -550, "y" : 240, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "F8F8F8" },
/* 16 */ { "x" : -550, "y" : -80, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "F8F8F8", "pos" : [-700,-80 ] },
/* 17 */ { "x" : -550, "y" : -240, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "F8F8F8" },
/* 18 */ { "x" : -550, "y" : 240, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea" },
/* 19 */ { "x" : 550, "y" : 240, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea" },
/* 20 */ { "x" : 550, "y" : 80, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "pos" : [700,80 ] },
/* 21 */ { "x" : 550, "y" : 240, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea" },
/* 22 */ { "x" : 550, "y" : -240, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "F8F8F8" },
/* 23 */ { "x" : 550, "y" : -80, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "F8F8F8", "pos" : [700,-80 ] },
/* 24 */ { "x" : 550, "y" : -240, "bCoef" : 0, "cMask" : ["ball" ], "trait" : "ballArea" },
/* 25 */ { "x" : 550, "y" : -240, "bCoef" : 0, "cMask" : ["ball" ], "trait" : "ballArea" },
/* 26 */ { "x" : -550, "y" : -240, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0 },
/* 27 */ { "x" : 550, "y" : -240, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0 },
/* 28 */ { "x" : 0, "y" : -240, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "trait" : "kickOffBarrier" },
/* 29 */ { "x" : 0, "y" : -80, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "trait" : "kickOffBarrier" },
/* 30 */ { "x" : 0, "y" : 80, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "trait" : "kickOffBarrier" },
/* 31 */ { "x" : 0, "y" : 240, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "trait" : "kickOffBarrier" },
/* 32 */ { "x" : 0, "y" : -80, "bCoef" : 0.1, "cMask" : ["red","blue" ], "trait" : "kickOffBarrier", "vis" : true, "color" : "F8F8F8" },
/* 33 */ { "x" : 0, "y" : 80, "bCoef" : 0.1, "cMask" : ["red","blue" ], "trait" : "kickOffBarrier", "vis" : true, "color" : "F8F8F8" },
/* 34 */ { "x" : 0, "y" : 80, "trait" : "kickOffBarrier", "color" : "F8F8F8", "vis" : true, "curve" : -180 },
/* 35 */ { "x" : 0, "y" : -80, "trait" : "kickOffBarrier", "color" : "F8F8F8", "vis" : true, "curve" : -180 },
/* 36 */ { "x" : 0, "y" : 80, "trait" : "kickOffBarrier", "color" : "F8F8F8", "vis" : true, "curve" : 0 },
/* 37 */ { "x" : 0, "y" : -80, "trait" : "kickOffBarrier", "color" : "F8F8F8", "vis" : true, "curve" : 0 },
/* 38 */ { "x" : -557.5, "y" : 80, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "vis" : false, "pos" : [-700,80 ] },
/* 39 */ { "x" : -557.5, "y" : 240, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "vis" : false },
/* 40 */ { "x" : -557.5, "y" : -240, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "vis" : false, "curve" : 0 },
/* 41 */ { "x" : -557.5, "y" : -80, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "vis" : false, "curve" : 0, "pos" : [-700,-80 ] },
/* 42 */ { "x" : 557.5, "y" : -240, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "vis" : false, "curve" : 0 },
/* 43 */ { "x" : 557.5, "y" : -80, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "vis" : false, "curve" : 0, "pos" : [700,-80 ] },
/* 44 */ { "x" : 557.5, "y" : 80, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "vis" : false, "pos" : [700,80 ] },
/* 45 */ { "x" : 557.5, "y" : 240, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "vis" : false },
/* 46 */ { "x" : 0, "y" : -80, "bCoef" : 0.1, "trait" : "line" },
/* 47 */ { "x" : 0, "y" : 80, "bCoef" : 0.1, "trait" : "line" },
/* 48 */ { "x" : -550, "y" : -80, "bCoef" : 0.1, "trait" : "line" },
/* 49 */ { "x" : -550, "y" : 80, "bCoef" : 0.1, "trait" : "line" },
/* 50 */ { "x" : 550, "y" : -80, "bCoef" : 0.1, "trait" : "line" },
/* 51 */ { "x" : 550, "y" : 80, "bCoef" : 0.1, "trait" : "line" },
/* 52 */ { "x" : -550, "y" : 200, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : -90 },
/* 53 */ { "x" : -390, "y" : 70, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 54 */ { "x" : -550, "y" : 226, "bCoef" : 0.1, "trait" : "line", "curve" : -90 },
/* 55 */ { "x" : -536, "y" : 240, "bCoef" : 0.1, "trait" : "line", "curve" : -90 },
/* 56 */ { "x" : -550, "y" : -200, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : 90 },
/* 57 */ { "x" : -390, "y" : -70, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 58 */ { "x" : -550, "y" : -226, "bCoef" : 0.1, "trait" : "line", "curve" : 90 },
/* 59 */ { "x" : -536, "y" : -240, "bCoef" : 0.1, "trait" : "line", "curve" : 90 },
/* 60 */ { "x" : -381, "y" : -240, "bCoef" : 0.1, "trait" : "line" },
/* 61 */ { "x" : 550, "y" : -226, "bCoef" : 0.1, "trait" : "line", "curve" : -90 },
/* 62 */ { "x" : 536, "y" : -240, "bCoef" : 0.1, "trait" : "line", "curve" : -90 },
/* 63 */ { "x" : 550, "y" : 226, "bCoef" : 0.1, "trait" : "line", "curve" : 90 },
/* 64 */ { "x" : 536, "y" : 240, "bCoef" : 0.1, "trait" : "line", "curve" : 90 },
/* 65 */ { "x" : 550, "y" : 200, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : 90 },
/* 66 */ { "x" : 390, "y" : 70, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : 90 },
/* 67 */ { "x" : 550, "y" : -200, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : -90 },
/* 68 */ { "x" : 390, "y" : -70, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : -90 },
/* 69 */ { "x" : 390, "y" : 70, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 70 */ { "x" : 390, "y" : -70, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 71 */ { "x" : -375, "y" : 1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 72 */ { "x" : -375, "y" : -1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 73 */ { "x" : -375, "y" : 3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 74 */ { "x" : -375, "y" : -3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 75 */ { "x" : -375, "y" : -2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 76 */ { "x" : -375, "y" : 2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 77 */ { "x" : -375, "y" : -3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 78 */ { "x" : -375, "y" : 3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 79 */ { "x" : 375, "y" : 1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 80 */ { "x" : 375, "y" : -1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 81 */ { "x" : 375, "y" : 3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 82 */ { "x" : 375, "y" : -3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 83 */ { "x" : 375, "y" : -2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 84 */ { "x" : 375, "y" : 2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 85 */ { "x" : 375, "y" : -3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 86 */ { "x" : 375, "y" : 3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 87 */ { "x" : -277.5, "y" : 1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 88 */ { "x" : -277.5, "y" : -1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 89 */ { "x" : -277.5, "y" : 3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 90 */ { "x" : -277.5, "y" : -3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 91 */ { "x" : -277.5, "y" : -2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 92 */ { "x" : -277.5, "y" : 2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 93 */ { "x" : -277.5, "y" : -3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 94 */ { "x" : -277.5, "y" : 3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 95 */ { "x" : 277.5, "y" : 1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 96 */ { "x" : 277.5, "y" : -1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 97 */ { "x" : 277.5, "y" : 3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 98 */ { "x" : 277.5, "y" : -3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 99 */ { "x" : 277.5, "y" : -2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 100 */ { "x" : 277.5, "y" : 2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 101 */ { "x" : 277.5, "y" : -3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 102 */ { "x" : 277.5, "y" : 3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 103 */ { "x" : -240, "y" : 224, "bCoef" : 0.1, "trait" : "line" },
/* 104 */ { "x" : -240, "y" : 256, "bCoef" : 0.1, "trait" : "line" },
/* 105 */ { "x" : -120, "y" : 224, "bCoef" : 0.1, "trait" : "line" },
/* 106 */ { "x" : -120, "y" : 256, "bCoef" : 0.1, "trait" : "line" },
/* 107 */ { "x" : 240, "y" : 224, "bCoef" : 0.1, "trait" : "line" },
/* 108 */ { "x" : 240, "y" : 256, "bCoef" : 0.1, "trait" : "line" },
/* 109 */ { "x" : 120, "y" : 224, "bCoef" : 0.1, "trait" : "line" },
/* 110 */ { "x" : 120, "y" : 256, "bCoef" : 0.1, "trait" : "line" },
/* 111 */ { "x" : -381, "y" : 240, "bCoef" : 0.1, "trait" : "line" },
/* 112 */ { "x" : -381, "y" : 256, "bCoef" : 0.1, "trait" : "line" },
/* 113 */ { "x" : -556, "y" : 123, "bCoef" : 0.1, "trait" : "line" },
/* 114 */ { "x" : -575, "y" : 123, "bCoef" : 0.1, "trait" : "line" },
/* 115 */ { "x" : 556, "y" : 123, "bCoef" : 0.1, "trait" : "line" },
/* 116 */ { "x" : 575, "y" : 123, "bCoef" : 0.1, "trait" : "line" },
/* 117 */ { "x" : -556, "y" : -123, "bCoef" : 0.1, "trait" : "line" },
/* 118 */ { "x" : -575, "y" : -123, "bCoef" : 0.1, "trait" : "line" },
/* 119 */ { "x" : 556, "y" : -123, "bCoef" : 0.1, "trait" : "line" },
/* 120 */ { "x" : 575, "y" : -123, "bCoef" : 0.1, "trait" : "line" },
/* 121 */ { "x" : -381, "y" : -240, "bCoef" : 0.1, "trait" : "line" },
/* 122 */ { "x" : -381, "y" : -256, "bCoef" : 0.1, "trait" : "line" },
/* 123 */ { "x" : 381, "y" : 240, "bCoef" : 0.1, "trait" : "line" },
/* 124 */ { "x" : 381, "y" : 256, "bCoef" : 0.1, "trait" : "line" },
/* 125 */ { "x" : 381, "y" : -240, "bCoef" : 0.1, "trait" : "line" },
/* 126 */ { "x" : 381, "y" : -256, "bCoef" : 0.1, "trait" : "line" }
],
"segments" : [
{ "v0" : 6, "v1" : 7, "curve" : 0, "color" : "F8F8F8", "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "pos" : [-700,-80 ], "y" : -80 },
{ "v0" : 7, "v1" : 8, "color" : "F8F8F8", "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "x" : -590 },
{ "v0" : 8, "v1" : 9, "curve" : 0, "color" : "F8F8F8", "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "pos" : [-700,80 ], "y" : 80 },
{ "v0" : 10, "v1" : 11, "curve" : 0, "color" : "F8F8F8", "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "pos" : [700,-80 ], "y" : -80 },
{ "v0" : 11, "v1" : 12, "color" : "F8F8F8", "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "x" : 590 },
{ "v0" : 12, "v1" : 13, "curve" : 0, "color" : "F8F8F8", "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "pos" : [700,80 ], "y" : 80 },
{ "v0" : 2, "v1" : 3, "trait" : "kickOffBarrier" },
{ "v0" : 3, "v1" : 4, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.15, "cGroup" : ["blueKO" ], "trait" : "kickOffBarrier" },
{ "v0" : 3, "v1" : 4, "curve" : -180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.15, "cGroup" : ["redKO" ], "trait" : "kickOffBarrier" },
{ "v0" : 4, "v1" : 5, "trait" : "kickOffBarrier" },
{ "v0" : 14, "v1" : 15, "vis" : true, "color" : "F8F8F8", "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "x" : -550 },
{ "v0" : 16, "v1" : 17, "vis" : true, "color" : "F8F8F8", "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "x" : -550 },
{ "v0" : 18, "v1" : 19, "vis" : true, "color" : "F8F8F8", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "y" : 240 },
{ "v0" : 20, "v1" : 21, "vis" : true, "color" : "F8F8F8", "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "x" : 550 },
{ "v0" : 22, "v1" : 23, "vis" : true, "color" : "F8F8F8", "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "x" : 550 },
{ "v0" : 24, "v1" : 25, "vis" : true, "color" : "F8F8F8", "bCoef" : 0, "cMask" : ["ball" ], "trait" : "ballArea", "x" : 550, "y" : -240 },
{ "v0" : 26, "v1" : 27, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "y" : -240 },
{ "v0" : 28, "v1" : 29, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "trait" : "kickOffBarrier" },
{ "v0" : 30, "v1" : 31, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "trait" : "kickOffBarrier" },
{ "v0" : 38, "v1" : 39, "curve" : 0, "vis" : false, "color" : "F8F8F8", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "x" : -557.5 },
{ "v0" : 40, "v1" : 41, "curve" : 0, "vis" : false, "color" : "F8F8F8", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "x" : -557.5 },
{ "v0" : 42, "v1" : 43, "curve" : 0, "vis" : false, "color" : "F8F8F8", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "x" : 557.5 },
{ "v0" : 44, "v1" : 45, "curve" : 0, "vis" : false, "color" : "F8F8F8", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "x" : 557.5 },
{ "v0" : 46, "v1" : 47, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 0 },
{ "v0" : 48, "v1" : 49, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -550 },
{ "v0" : 50, "v1" : 51, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 550 },
{ "v0" : 52, "v1" : 53, "curve" : -90, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line" },
{ "v0" : 55, "v1" : 54, "curve" : -90, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line" },
{ "v0" : 56, "v1" : 57, "curve" : 90, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line" },
{ "v0" : 53, "v1" : 57, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line" },
{ "v0" : 59, "v1" : 58, "curve" : 90, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line" },
{ "v0" : 62, "v1" : 61, "curve" : -90, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line" },
{ "v0" : 64, "v1" : 63, "curve" : 90, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line" },
{ "v0" : 65, "v1" : 66, "curve" : 90, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line" },
{ "v0" : 67, "v1" : 68, "curve" : -90, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line" },
{ "v0" : 69, "v1" : 70, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 390 },
{ "v0" : 72, "v1" : 71, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -375 },
{ "v0" : 71, "v1" : 72, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -375 },
{ "v0" : 74, "v1" : 73, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -375 },
{ "v0" : 73, "v1" : 74, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -375 },
{ "v0" : 76, "v1" : 75, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -375 },
{ "v0" : 75, "v1" : 76, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -375 },
{ "v0" : 78, "v1" : 77, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -375 },
{ "v0" : 77, "v1" : 78, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -375 },
{ "v0" : 80, "v1" : 79, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 375 },
{ "v0" : 79, "v1" : 80, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 375 },
{ "v0" : 82, "v1" : 81, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 375 },
{ "v0" : 81, "v1" : 82, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 375 },
{ "v0" : 84, "v1" : 83, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 375 },
{ "v0" : 83, "v1" : 84, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 375 },
{ "v0" : 86, "v1" : 85, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 375 },
{ "v0" : 85, "v1" : 86, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 375 },
{ "v0" : 88, "v1" : 87, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -277.5 },
{ "v0" : 87, "v1" : 88, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -277.5 },
{ "v0" : 90, "v1" : 89, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -277.5 },
{ "v0" : 89, "v1" : 90, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -277.5 },
{ "v0" : 92, "v1" : 91, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -277.5 },
{ "v0" : 91, "v1" : 92, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -277.5 },
{ "v0" : 94, "v1" : 93, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -277.5 },
{ "v0" : 93, "v1" : 94, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -277.5 },
{ "v0" : 96, "v1" : 95, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 277.5 },
{ "v0" : 95, "v1" : 96, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 277.5 },
{ "v0" : 98, "v1" : 97, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 277.5 },
{ "v0" : 97, "v1" : 98, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 277.5 },
{ "v0" : 100, "v1" : 99, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 277.5 },
{ "v0" : 99, "v1" : 100, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 277.5 },
{ "v0" : 102, "v1" : 101, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 277.5 },
{ "v0" : 101, "v1" : 102, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 277.5 },
{ "v0" : 103, "v1" : 104, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -240 },
{ "v0" : 105, "v1" : 106, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -120 },
{ "v0" : 107, "v1" : 108, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 240 },
{ "v0" : 109, "v1" : 110, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 120 },
{ "v0" : 111, "v1" : 112, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -381 },
{ "v0" : 113, "v1" : 114, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -240, "y" : 123 },
{ "v0" : 115, "v1" : 116, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -240, "y" : 123 },
{ "v0" : 117, "v1" : 118, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -240, "y" : -123 },
{ "v0" : 119, "v1" : 120, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -240, "y" : -123 },
{ "v0" : 121, "v1" : 122, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -381 },
{ "v0" : 123, "v1" : 124, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 381 },
{ "v0" : 125, "v1" : 126, "curve" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 381 }
],
"goals" : [
{ "p0" : [-556.25,-80 ], "p1" : [-556.25,80 ], "team" : "red" },
{ "p0" : [556.25,80 ], "p1" : [556.25,-80 ], "team" : "blue" }
],
"discs" : [
{ "radius" : 5, "pos" : [-550,80 ], "color" : "6666CC", "trait" : "goalPost", "y" : 80 },
{ "radius" : 5, "pos" : [-550,-80 ], "color" : "6666CC", "trait" : "goalPost", "y" : -80, "x" : -560 },
{ "radius" : 5, "pos" : [550,80 ], "color" : "6666CC", "trait" : "goalPost", "y" : 80 },
{ "radius" : 5, "pos" : [550,-80 ], "color" : "6666CC", "trait" : "goalPost", "y" : -80 },
{ "radius" : 3, "invMass" : 0, "pos" : [-550,240 ], "color" : "FFCC00", "bCoef" : 0.1, "trait" : "line" },
{ "radius" : 3, "invMass" : 0, "pos" : [-550,-240 ], "color" : "FFCC00", "bCoef" : 0.1, "trait" : "line" },
{ "radius" : 3, "invMass" : 0, "pos" : [550,-240 ], "color" : "FFCC00", "bCoef" : 0.1, "trait" : "line" },
{ "radius" : 3, "invMass" : 0, "pos" : [550,240 ], "color" : "FFCC00", "bCoef" : 0.1, "trait" : "line" }
],
"planes" : [
{ "normal" : [0,1 ], "dist" : -240, "bCoef" : 1, "trait" : "ballArea", "vis" : false, "curve" : 0 },
{ "normal" : [0,-1 ], "dist" : -240, "bCoef" : 1, "trait" : "ballArea" },
{ "normal" : [0,1 ], "dist" : -270, "bCoef" : 0.1 },
{ "normal" : [0,-1 ], "dist" : -270, "bCoef" : 0.1 },
{ "normal" : [1,0 ], "dist" : -620, "bCoef" : 0.1 },
{ "normal" : [-1,0 ], "dist" : -620, "bCoef" : 0.1 },
{ "normal" : [1,0 ], "dist" : -620, "bCoef" : 0.1, "trait" : "ballArea", "vis" : false, "curve" : 0 },
{ "normal" : [-1,0 ], "dist" : -620, "bCoef" : 0.1, "trait" : "ballArea", "vis" : false, "curve" : 0 }
],
"traits" : {
"ballArea" : { "vis" : false, "bCoef" : 1, "cMask" : ["ball" ] },
"goalPost" : { "radius" : 8, "invMass" : 0, "bCoef" : 0.5 },
"goalNet" : { "vis" : true, "bCoef" : 0.1, "cMask" : ["ball" ] },
"line" : { "vis" : true, "bCoef" : 0.1, "cMask" : ["" ] },
"kickOffBarrier" : { "vis" : false, "bCoef" : 0.1, "cGroup" : ["redKO","blueKO" ], "cMask" : ["red","blue" ] }
},
"playerPhysics" : {
"bCoef" : 0,
"acceleration" : 0.11,
"kickingAcceleration" : 0.083,
"kickStrength" : 5
},
"ballPhysics" : {
"radius" : 6.25,
"bCoef" : 0.4,
"invMass" : 1.5,
"damping" : 0.99,
"color" : "FFCC00"
}
}`
/* ESTÁDIO 2X2 */
var stadiumx2 = `{
"name" : "Futsal x2 FAZo7",
"width" : 420,
"height" : 200,
"spawnDistance" : 170,
"bg" : { "type" : "hockey", "width" : 370, "height" : 170, "kickOffRadius" : 75, "cornerRadius" : 0 },
"vertexes" : [
/* 0 */ { "x" : -370, "y" : 170, "bCoef" : 1.25, "trait" : "line", "color" : "F8F8F8", "vis" : true },
/* 1 */ { "x" : -370, "y" : 64, "bCoef" : 1.25, "trait" : "ballArea", "color" : "F8F8F8", "vis" : true },
/* 2 */ { "x" : -370, "y" : -64, "bCoef" : 1.25, "trait" : "ballArea", "color" : "F8F8F8", "vis" : true },
/* 3 */ { "x" : -370, "y" : -170, "bCoef" : 1.25, "trait" : "line", "color" : "F8F8F8", "vis" : true },
/* 4 */ { "x" : 370, "y" : 170, "bCoef" : 1.25, "trait" : "line", "color" : "F8F8F8", "vis" : true },
/* 5 */ { "x" : 370, "y" : 64, "bCoef" : 1.25, "trait" : "ballArea", "color" : "F8F8F8", "vis" : true },
/* 6 */ { "x" : 370, "y" : -64, "bCoef" : 1.25, "trait" : "ballArea", "color" : "F8F8F8", "vis" : true },
/* 7 */ { "x" : 370, "y" : -170, "bCoef" : 1.25, "trait" : "line", "color" : "F8F8F8", "vis" : true },
/* 8 */ { "x" : 0, "y" : 170, "trait" : "kickOffBarrier", "vis" : false, "color" : "F8F8F8" },
/* 9 */ { "x" : 0, "y" : 75, "trait" : "line", "vis" : true, "color" : "F8F8F8" },
/* 10 */ { "x" : 0, "y" : -75, "trait" : "line", "vis" : true, "color" : "F8F8F8" },
/* 11 */ { "x" : 0, "y" : -170, "trait" : "kickOffBarrier", "vis" : true, "color" : "F8F8F8" },
/* 12 */ { "x" : -370, "y" : -64, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8" },
/* 13 */ { "x" : -402.5, "y" : -64, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8" },
/* 14 */ { "x" : -402.5, "y" : 64, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8" },
/* 15 */ { "x" : -370, "y" : 64, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8" },
/* 16 */ { "x" : 370, "y" : -64, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "6666FF" },
/* 17 */ { "x" : 402.5, "y" : -64, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8" },
/* 18 */ { "x" : 402.5, "y" : 64, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "F8F8F8" },
/* 19 */ { "x" : 370, "y" : 64, "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "curve" : 0, "color" : "6666FF" },
/* 20 */ { "x" : 0, "y" : 200, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "trait" : "kickOffBarrier", "vis" : false },
/* 21 */ { "x" : 0, "y" : -200, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "trait" : "kickOffBarrier" },
/* 22 */ { "x" : -370, "y" : 64, "trait" : "line", "vis" : true, "color" : "F8F8F8" },
/* 23 */ { "x" : -370, "y" : -64, "trait" : "line", "vis" : true, "color" : "F8F8F8" },
/* 24 */ { "x" : 370, "y" : 64, "trait" : "line", "vis" : true, "color" : "F8F8F8" },
/* 25 */ { "x" : 370, "y" : -64, "trait" : "line", "vis" : true, "color" : "F8F8F8" },
/* 26 */ { "x" : -377.5, "y" : 170, "bCoef" : 1.25, "trait" : "line", "color" : "F8F8F8", "vis" : false },
/* 27 */ { "x" : -377.5, "y" : 64, "bCoef" : 1.25, "trait" : "ballArea", "color" : "F8F8F8", "vis" : false },
/* 28 */ { "x" : -377.5, "y" : -64, "bCoef" : 1.25, "trait" : "ballArea", "color" : "F8F8F8", "vis" : false },
/* 29 */ { "x" : -377.5, "y" : -170, "bCoef" : 1.25, "trait" : "line", "color" : "F8F8F8", "vis" : false },
/* 30 */ { "x" : -387.5, "y" : 170, "bCoef" : 0, "trait" : "line", "color" : "F8F8F8", "vis" : false },
/* 31 */ { "x" : -387.5, "y" : 64, "bCoef" : 0, "trait" : "ballArea", "color" : "F8F8F8", "vis" : false },
/* 32 */ { "x" : -387.5, "y" : -64, "bCoef" : 0, "trait" : "ballArea", "color" : "F8F8F8", "vis" : false },
/* 33 */ { "x" : -387.5, "y" : -170, "bCoef" : 0, "trait" : "line", "color" : "F8F8F8", "vis" : false },
/* 34 */ { "x" : 377.5, "y" : 170, "bCoef" : 1.25, "trait" : "line", "color" : "F8F8F8", "vis" : false },
/* 35 */ { "x" : 377.5, "y" : 64, "bCoef" : 1.25, "trait" : "ballArea", "color" : "F8F8F8", "vis" : false },
/* 36 */ { "x" : 377.5, "y" : -64, "bCoef" : 1.25, "trait" : "ballArea", "color" : "F8F8F8", "vis" : false },
/* 37 */ { "x" : 377.5, "y" : -170, "bCoef" : 1.25, "trait" : "line", "color" : "F8F8F8", "vis" : false },
/* 38 */ { "x" : 387.5, "y" : 170, "bCoef" : 0, "trait" : "line", "color" : "F8F8F8", "vis" : false },
/* 39 */ { "x" : 387.5, "y" : 64, "bCoef" : 0, "trait" : "ballArea", "color" : "F8F8F8", "vis" : false },
/* 40 */ { "x" : 387.5, "y" : -64, "bCoef" : 0, "trait" : "ballArea", "color" : "F8F8F8", "vis" : false },
/* 41 */ { "x" : 387.5, "y" : -170, "bCoef" : 0, "trait" : "line", "color" : "F8F8F8", "vis" : false },
/* 42 */ { "x" : -370, "y" : 156, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : 90 },
/* 43 */ { "x" : -356, "y" : 170, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : 90 },
/* 44 */ { "x" : -370, "y" : -156, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : -90 },
/* 45 */ { "x" : -356, "y" : -170, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : -90 },
/* 46 */ { "x" : 370, "y" : -156, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : 90 },
/* 47 */ { "x" : 356, "y" : -170, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : 90 },
/* 48 */ { "x" : 370, "y" : 156, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : -90 },
/* 49 */ { "x" : 356, "y" : 170, "bCoef" : 0.1, "trait" : "line", "color" : "F8F8F8", "curve" : -90 },
/* 50 */ { "x" : -370, "y" : 126, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8" },
/* 51 */ { "x" : -370, "y" : -126, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8" },
/* 52 */ { "x" : -280, "y" : -40, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 53 */ { "x" : -280, "y" : 40, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 54 */ { "x" : -396, "y" : 96, "trait" : "line" },
/* 55 */ { "x" : -376, "y" : 96, "trait" : "line" },
/* 56 */ { "x" : -396, "y" : -96, "trait" : "line" },
/* 57 */ { "x" : -376, "y" : -96, "trait" : "line" },
/* 58 */ { "x" : 370, "y" : -126, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8" },
/* 59 */ { "x" : 370, "y" : 126, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8" },
/* 60 */ { "x" : 280, "y" : 40, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 61 */ { "x" : 280, "y" : -40, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 62 */ { "x" : 396, "y" : -96, "trait" : "line" },
/* 63 */ { "x" : 376, "y" : -96, "trait" : "line" },
/* 64 */ { "x" : 396, "y" : 96, "trait" : "line" },
/* 65 */ { "x" : 376, "y" : 96, "trait" : "line" },
/* 66 */ { "x" : -247.5, "y" : 1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 67 */ { "x" : -247.5, "y" : -1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 68 */ { "x" : -247.5, "y" : 3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 69 */ { "x" : -247.5, "y" : -3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 70 */ { "x" : -247.5, "y" : -2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 71 */ { "x" : -247.5, "y" : 2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 72 */ { "x" : -247.5, "y" : -3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 73 */ { "x" : -247.5, "y" : 3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 74 */ { "x" : -187.5, "y" : 1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 75 */ { "x" : -187.5, "y" : -1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 76 */ { "x" : -187.5, "y" : 3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 77 */ { "x" : -187.5, "y" : -3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 78 */ { "x" : -187.5, "y" : -2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 79 */ { "x" : -187.5, "y" : 2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 80 */ { "x" : -187.5, "y" : -3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 81 */ { "x" : -187.5, "y" : 3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 82 */ { "x" : 187.5, "y" : 1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 83 */ { "x" : 187.5, "y" : -1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 84 */ { "x" : 187.5, "y" : 3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 85 */ { "x" : 187.5, "y" : -3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 86 */ { "x" : 187.5, "y" : -2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 87 */ { "x" : 187.5, "y" : 2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 88 */ { "x" : 187.5, "y" : -3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 89 */ { "x" : 187.5, "y" : 3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 90 */ { "x" : 247.5, "y" : 1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 91 */ { "x" : 247.5, "y" : -1, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 92 */ { "x" : 247.5, "y" : 3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 93 */ { "x" : 247.5, "y" : -3, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 94 */ { "x" : 247.5, "y" : -2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 95 */ { "x" : 247.5, "y" : 2, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 96 */ { "x" : 247.5, "y" : -3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 97 */ { "x" : 247.5, "y" : 3.5, "bCoef" : 0.1, "trait" : "line", "curve" : 180 },
/* 98 */ { "x" : -245, "y" : 170, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 99 */ { "x" : -245, "y" : 184, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 100 */ { "x" : -245, "y" : -170, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 101 */ { "x" : -245, "y" : -184, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 102 */ { "x" : 245, "y" : 170, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 103 */ { "x" : 245, "y" : 184, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 104 */ { "x" : 245, "y" : -170, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8", "curve" : 0 },
/* 105 */ { "x" : 245, "y" : -184, "bCoef" : 0.5, "trait" : "line", "color" : "F8F8F8", "curve" : 0 }
],
"segments" : [
{ "v0" : 0, "v1" : 1, "vis" : true, "color" : "F8F8F8", "bCoef" : 1.25, "trait" : "ballArea" },
{ "v0" : 2, "v1" : 3, "vis" : true, "color" : "F8F8F8", "bCoef" : 1.25, "trait" : "ballArea" },
{ "v0" : 4, "v1" : 5, "vis" : true, "color" : "F8F8F8", "bCoef" : 1.25, "trait" : "ballArea" },
{ "v0" : 6, "v1" : 7, "vis" : true, "color" : "F8F8F8", "bCoef" : 1.25, "trait" : "ballArea" },
{ "v0" : 12, "v1" : 13, "curve" : 0, "color" : "F8F8F8", "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "y" : -64 },
{ "v0" : 13, "v1" : 14, "curve" : 0, "color" : "F8F8F8", "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "x" : -402.5 },
{ "v0" : 14, "v1" : 15, "curve" : 0, "color" : "F8F8F8", "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "y" : 64 },
{ "v0" : 16, "v1" : 17, "curve" : 0, "color" : "F8F8F8", "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "y" : -64 },
{ "v0" : 17, "v1" : 18, "curve" : 0, "color" : "F8F8F8", "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "x" : 402.5 },
{ "v0" : 18, "v1" : 19, "curve" : 0, "color" : "F8F8F8", "cMask" : ["red","blue","ball" ], "trait" : "goalNet", "y" : 64 },
{ "v0" : 8, "v1" : 9, "vis" : true, "color" : "F8F8F8", "trait" : "kickOffBarrier" },
{ "v0" : 9, "v1" : 10, "curve" : 180, "vis" : true, "color" : "F8F8F8", "cGroup" : ["blueKO" ], "trait" : "kickOffBarrier" },
{ "v0" : 9, "v1" : 10, "curve" : -180, "vis" : true, "color" : "F8F8F8", "cGroup" : ["redKO" ], "trait" : "kickOffBarrier" },
{ "v0" : 10, "v1" : 11, "vis" : true, "color" : "F8F8F8", "trait" : "kickOffBarrier" },
{ "v0" : 4, "v1" : 0, "vis" : true, "color" : "F8F8F8", "bCoef" : 1.25, "cMask" : ["" ], "trait" : "line" },
{ "v0" : 3, "v1" : 7, "vis" : true, "color" : "F8F8F8", "bCoef" : 1.25, "cMask" : ["" ], "trait" : "line" },
{ "v0" : 10, "v1" : 9, "vis" : true, "color" : "F8F8F8", "bCoef" : 1.25, "trait" : "line" },
{ "v0" : 8, "v1" : 20, "vis" : false, "color" : "F8F8F8", "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "trait" : "kickOffBarrier", "x" : 0 },
{ "v0" : 11, "v1" : 21, "vis" : false, "color" : "F8F8F8", "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "trait" : "kickOffBarrier" },
{ "v0" : 23, "v1" : 22, "vis" : true, "color" : "F8F8F8", "bCoef" : 1.25, "trait" : "line", "x" : -370 },
{ "v0" : 25, "v1" : 24, "vis" : true, "color" : "F8F8F8", "bCoef" : 1.25, "trait" : "line", "x" : 370 },
{ "v0" : 26, "v1" : 27, "vis" : false, "color" : "F8F8F8", "bCoef" : 1.25, "trait" : "ballArea", "x" : -377.5 },
{ "v0" : 28, "v1" : 29, "vis" : false, "color" : "F8F8F8", "bCoef" : 1.25, "trait" : "ballArea", "x" : -377.5 },
{ "v0" : 30, "v1" : 31, "vis" : false, "color" : "F8F8F8", "bCoef" : 0, "trait" : "ballArea", "x" : -387.5 },
{ "v0" : 32, "v1" : 33, "vis" : false, "color" : "F8F8F8", "bCoef" : 0, "trait" : "ballArea", "x" : -387.5 },
{ "v0" : 34, "v1" : 35, "vis" : false, "color" : "F8F8F8", "bCoef" : 1.25, "trait" : "ballArea", "x" : 377.5 },
{ "v0" : 36, "v1" : 37, "vis" : false, "color" : "F8F8F8", "bCoef" : 1.25, "trait" : "ballArea", "x" : 377.5 },
{ "v0" : 38, "v1" : 39, "vis" : false, "color" : "F8F8F8", "bCoef" : 0, "trait" : "ballArea", "x" : 387.5 },
{ "v0" : 40, "v1" : 41, "vis" : false, "color" : "F8F8F8", "bCoef" : 0, "trait" : "ballArea", "x" : 387.5 },
{ "v0" : 50, "v1" : 53, "curve" : -90, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line" },
{ "v0" : 52, "v1" : 51, "curve" : -90, "vis" : true, "color" : "F8F8F8", "trait" : "line" },
{ "v0" : 52, "v1" : 53, "curve" : 0, "vis" : true, "color" : "F8F8F8", "trait" : "line", "x" : -280 },
{ "v0" : 54, "v1" : 55, "curve" : 0, "vis" : true, "color" : "F8F8F8", "trait" : "line", "y" : 96 },
{ "v0" : 56, "v1" : 57, "curve" : 0, "vis" : true, "color" : "F8F8F8", "trait" : "line", "y" : -96 },
{ "v0" : 58, "v1" : 61, "curve" : -90, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line" },
{ "v0" : 60, "v1" : 59, "curve" : -90, "vis" : true, "color" : "F8F8F8", "trait" : "line" },
{ "v0" : 60, "v1" : 61, "curve" : 0, "vis" : true, "color" : "F8F8F8", "trait" : "line", "x" : 280 },
{ "v0" : 62, "v1" : 63, "curve" : 0, "vis" : true, "color" : "F8F8F8", "trait" : "line", "y" : 96 },
{ "v0" : 64, "v1" : 65, "curve" : 0, "vis" : true, "color" : "F8F8F8", "trait" : "line", "y" : -96 },
{ "v0" : 67, "v1" : 66, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -247.5 },
{ "v0" : 66, "v1" : 67, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -247.5 },
{ "v0" : 69, "v1" : 68, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -247.5 },
{ "v0" : 68, "v1" : 69, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -247.5 },
{ "v0" : 71, "v1" : 70, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -247.5 },
{ "v0" : 70, "v1" : 71, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -247.5 },
{ "v0" : 73, "v1" : 72, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -247.5 },
{ "v0" : 72, "v1" : 73, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -247.5 },
{ "v0" : 75, "v1" : 74, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -187.5 },
{ "v0" : 74, "v1" : 75, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -187.5 },
{ "v0" : 77, "v1" : 76, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -187.5 },
{ "v0" : 76, "v1" : 77, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -187.5 },
{ "v0" : 79, "v1" : 78, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -187.5 },
{ "v0" : 78, "v1" : 79, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -187.5 },
{ "v0" : 81, "v1" : 80, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -187.5 },
{ "v0" : 80, "v1" : 81, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : -187.5 },
{ "v0" : 83, "v1" : 82, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 187.5 },
{ "v0" : 82, "v1" : 83, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 187.5 },
{ "v0" : 85, "v1" : 84, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 187.5 },
{ "v0" : 84, "v1" : 85, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 187.5 },
{ "v0" : 87, "v1" : 86, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 187.5 },
{ "v0" : 86, "v1" : 87, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 187.5 },
{ "v0" : 89, "v1" : 88, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 187.5 },
{ "v0" : 88, "v1" : 89, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 187.5 },
{ "v0" : 91, "v1" : 90, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 247.5 },
{ "v0" : 90, "v1" : 91, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 247.5 },
{ "v0" : 93, "v1" : 92, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 247.5 },
{ "v0" : 92, "v1" : 93, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 247.5 },
{ "v0" : 95, "v1" : 94, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 247.5 },
{ "v0" : 94, "v1" : 95, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 247.5 },
{ "v0" : 97, "v1" : 96, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 247.5 },
{ "v0" : 96, "v1" : 97, "curve" : 180, "vis" : true, "color" : "F8F8F8", "bCoef" : 0.1, "trait" : "line", "x" : 247.5 },
{ "v0" : 98, "v1" : 99, "curve" : 0, "vis" : true, "color" : "F8F8F8", "trait" : "line", "x" : -245 },
{ "v0" : 100, "v1" : 101, "curve" : 0, "vis" : true, "color" : "F8F8F8", "trait" : "line", "x" : -245 },
{ "v0" : 102, "v1" : 103, "curve" : 0, "vis" : true, "color" : "F8F8F8", "trait" : "line", "x" : 245 },
{ "v0" : 104, "v1" : 105, "curve" : 0, "vis" : true, "color" : "F8F8F8", "trait" : "line", "x" : 245 }
],
"goals" : [
{ "p0" : [-370,64 ], "p1" : [-370,-64 ], "team" : "red", "x" : -370 },
{ "p0" : [370,64 ], "p1" : [370,-64 ], "team" : "blue", "x" : 370, "color" : "6666FF" }
],
"discs" : [
{ "radius" : 5, "pos" : [-370,64 ], "color" : "FF6666", "trait" : "goalPost", "x" : -370 },
{ "radius" : 5, "pos" : [-370,-64 ], "color" : "FF6666", "trait" : "goalPost", "x" : -370 },
{ "radius" : 5, "pos" : [370,64 ], "color" : "6666FF", "trait" : "goalPost", "x" : 370 },
{ "radius" : 5, "pos" : [370,-64 ], "color" : "6666FF", "trait" : "goalPost", "x" : 370 }
],
"planes" : [
{ "normal" : [0,1 ], "dist" : -170, "trait" : "ballArea" },
{ "normal" : [0,-1 ], "dist" : -170, "trait" : "ballArea" },
{ "normal" : [0,1 ], "dist" : -200, "bCoef" : 0.1 },
{ "normal" : [0,-1 ], "dist" : -200, "bCoef" : 0.1 },
{ "normal" : [1,0 ], "dist" : -432.5, "bCoef" : 0.1 },
{ "normal" : [-1,0 ], "dist" : -432.5, "bCoef" : 0.1 },
{ "normal" : [1,0 ], "dist" : -420, "bCoef" : 0.1, "cMask" : ["ball" ] },
{ "normal" : [-1,0 ], "dist" : -420, "bCoef" : 0.1, "cMask" : ["ball" ] }
],
"traits" : {
"ballArea" : { "vis" : false, "bCoef" : 1, "cMask" : ["ball" ] },
"goalPost" : { "radius" : 8, "invMass" : 0, "bCoef" : 0.5 },
"goalNet" : { "vis" : true, "bCoef" : 0.1, "cMask" : ["ball" ] },
"line" : { "vis" : true, "bCoef" : 0.1, "cMask" : ["" ] },
"kickOffBarrier" : { "vis" : false, "bCoef" : 0.1, "cGroup" : ["redKO","blueKO" ], "cMask" : ["red","blue" ] }
},
"ballPhysics" : {
"radius" : 6.25,
"color" : "FFCC00",
"invMass" : 1.5,
"bCoef" : 0.4
},
"playerPhysics" : {
"kickStrength" : 4.75,
"acceleration" : 0.11,
"kickingAcceleration" : 0.083,
"bCoef" : 0
}
}`
/* ESTÁDIO GOL-A-GOL */
var goaltogoal = `{
"name" : "Gol a Gol FAZo7",
"width" : 425,
"height" : 200,
"spawnDistance" : 170,
"bg" : { "type" : "hockey", "width" : 0, "height" : 0, "kickOffRadius" : 0, "cornerRadius" : 0 },
"vertexes" : [
/* 0 */ { "x" : -370, "y" : 170, "trait" : "ballArea" },
/* 1 */ { "x" : -370, "y" : -170, "trait" : "ballArea" },
/* 2 */ { "x" : 370, "y" : -170, "trait" : "ballArea" },
/* 3 */ { "x" : 0, "y" : -170, "trait" : "kickOffBarrier", "cMask" : ["wall" ], "color" : "f708ff" },
/* 4 */ { "x" : -371, "y" : -144, "trait" : "goalNet", "curve" : -190, "color" : "ff0000" },
/* 5 */ { "x" : -375, "y" : -105, "trait" : "goalNet", "curve" : -190, "color" : "ff0000" },
/* 6 */ { "x" : 370, "y" : -143, "trait" : "goalNet", "curve" : 190, "color" : "ff0000" },
/* 7 */ { "x" : 370, "y" : -106, "trait" : "goalNet", "curve" : 190, "color" : "ff0000" },
/* 8 */ { "x" : -370, "y" : -38, "trait" : "goalNet", "curve" : -190, "bCoef" : 1, "color" : "ffffff" },
/* 9 */ { "x" : -374, "y" : 35, "trait" : "goalNet", "curve" : -190, "color" : "ffffff" },
/* 10 */ { "x" : -375, "y" : 105, "trait" : "goalNet", "curve" : -190, "color" : "ff0000" },
/* 11 */ { "x" : -371, "y" : 143, "trait" : "goalNet", "curve" : -190, "color" : "ff0000" },
/* 12 */ { "bCoef" : 0.1, "cMask" : ["blue" ], "trait" : "kickOffBarrier", "x" : 50, "y" : -200, "curve" : 0, "vis" : true, "color" : "000000", "cGroup" : ["redKO" ] },
/* 13 */ { "bCoef" : 0.1, "cMask" : ["blue" ], "trait" : "kickOffBarrier", "x" : 50, "y" : 200, "curve" : 0, "vis" : true, "color" : "000000", "cGroup" : ["redKO" ] },
/* 14 */ { "x" : 370, "y" : 104, "trait" : "goalNet", "curve" : 190, "color" : "ff0000" },
/* 15 */ { "x" : 370, "y" : 142, "trait" : "goalNet", "curve" : 190, "color" : "ff0000" },
/* 16 */ { "x" : 370, "y" : -37, "trait" : "goalNet", "curve" : 190, "color" : "ffffff" },
/* 17 */ { "x" : 370, "y" : 39, "trait" : "goalNet", "curve" : 190, "color" : "ffffff" },
/* 18 */ { "bCoef" : 1, "cMask" : ["ball" ], "trait" : "goalNet", "x" : 370, "y" : 142, "curve" : 0, "vis" : false },
/* 19 */ { "bCoef" : 1.4, "cMask" : ["ball" ], "trait" : "goalNet", "x" : 370, "y" : 170, "curve" : 0, "vis" : false, "color" : "ffffff" },
/* 20 */ { "bCoef" : 1.5, "cMask" : ["ball" ], "trait" : "goalNet", "x" : -370, "y" : 146, "curve" : 0, "vis" : false },
/* 21 */ { "bCoef" : 1.5, "cMask" : ["ball" ], "trait" : "goalNet", "x" : -370, "y" : 170, "curve" : 0, "vis" : false },
/* 22 */ { "bCoef" : 1, "cMask" : ["ball" ], "trait" : "goalNet", "x" : -370, "y" : 145, "curve" : 0, "vis" : false },
/* 23 */ { "bCoef" : 1.4, "cMask" : ["ball" ], "trait" : "goalNet", "x" : -370, "y" : 170, "curve" : 0, "vis" : false, "color" : "ffffff" },
/* 24 */ { "bCoef" : 1, "trait" : "goalPost", "x" : -370, "y" : -103, "cMask" : ["ball" ], "curve" : 1 },
/* 25 */ { "bCoef" : 1, "trait" : "goalPost", "x" : -371, "y" : -34, "cMask" : ["ball" ], "curve" : 1 },
/* 26 */ { "bCoef" : 1.4, "cMask" : ["ball" ], "trait" : "goalNet", "x" : -370, "y" : -170, "color" : "ffffff" },
/* 27 */ { "bCoef" : 1.5, "cMask" : ["ball" ], "trait" : "goalPost", "x" : -371, "y" : -143 },
/* 28 */ { "bCoef" : 1, "cMask" : ["ball" ], "trait" : "goalNet", "x" : -370, "y" : 37, "color" : "ffffff" },
/* 29 */ { "bCoef" : 1, "cMask" : ["ball" ], "trait" : "goalNet", "x" : -370, "y" : 99, "color" : "ffffff" },
/* 30 */ { "bCoef" : 1.4, "cMask" : ["ball" ], "trait" : "goalNet", "x" : 370, "y" : -170, "color" : "ffffff" },
/* 31 */ { "bCoef" : 1.52, "cMask" : ["ball" ], "trait" : "goalPost", "x" : 370, "y" : -145 },
/* 32 */ { "bCoef" : 1, "cMask" : ["ball" ], "trait" : "goalPost", "x" : 370, "y" : -104 },
/* 33 */ { "bCoef" : 1, "cMask" : ["ball" ], "trait" : "goalPost", "x" : 371, "y" : -37 },
/* 34 */ { "bCoef" : 0.1, "cMask" : ["red" ], "trait" : "goalPost", "x" : -50, "y" : -200, "curve" : 0, "vis" : true, "color" : "000000", "cGroup" : ["blueKO" ] },
/* 35 */ { "bCoef" : 0.1, "cMask" : ["red" ], "trait" : "goalPost", "x" : -50, "y" : 200, "curve" : 0, "vis" : true, "color" : "000000", "cGroup" : ["blueKO" ] },
/* 36 */ { "bCoef" : 1, "trait" : "goalNet", "x" : 370, "y" : -152, "color" : "ffffff" },
/* 37 */ { "cMask" : ["ball" ], "x" : -370, "y" : -152, "color" : "ffffff", "bCoef" : 1, "trait" : "goalNet" },
/* 38 */ { "bCoef" : 1, "cMask" : ["ball" ], "trait" : "goalNet", "x" : -370, "y" : -95, "color" : "000000" },
/* 39 */ { "cMask" : ["ball" ], "trait" : "goalNet", "x" : 370, "y" : 152, "bCoef" : 1, "color" : "ffffff" },
/* 40 */ { "bCoef" : 1, "trait" : "goalNet", "x" : 370, "y" : -96, "color" : "ffffff" },
/* 41 */ { "bCoef" : 1, "trait" : "goalNet", "x" : 370, "y" : -44, "color" : "ffffff" },
/* 42 */ { "bCoef" : 1, "trait" : "goalNet", "x" : -370, "y" : 153, "color" : "ffffff" },
/* 43 */ { "bCoef" : 1, "trait" : "goalNet", "x" : 370, "y" : 49, "color" : "ffffff" },
/* 44 */ { "bCoef" : 1, "trait" : "goalNet", "x" : 370, "y" : 96, "color" : "ffffff" },
/* 45 */ { "bCoef" : 0.1, "x" : 0, "y" : 170, "cMask" : ["wall" ], "color" : "f708ff" },
/* 46 */ { "x" : -370, "y" : -144, "trait" : "goalNet", "curve" : 0, "vis" : false },
/* 47 */ { "x" : -370, "y" : -105, "trait" : "goalNet", "curve" : 0, "vis" : false },
/* 48 */ { "x" : -370, "y" : -38, "trait" : "goalNet", "curve" : 0, "bCoef" : 1, "color" : "000000", "vis" : false },
/* 49 */ { "x" : -370, "y" : 35, "trait" : "goalNet", "curve" : 0, "vis" : false },
/* 50 */ { "x" : -370, "y" : 105, "trait" : "goalNet", "curve" : 0, "vis" : false },
/* 51 */ { "x" : -370, "y" : 143, "trait" : "goalNet", "curve" : 0, "vis" : false },
/* 52 */ { "bCoef" : 0.1, "cMask" : ["red" ], "trait" : "goalPost", "x" : 50, "y" : -200, "curve" : 0, "vis" : true, "color" : "08FFD6", "cGroup" : ["red" ] },
/* 53 */ { "bCoef" : 0.1, "cMask" : ["red" ], "trait" : "goalPost", "x" : 50, "y" : 200, "curve" : 0, "vis" : true, "color" : "08FFD6", "cGroup" : ["red" ] },
/* 54 */ { "bCoef" : 0.1, "cMask" : ["blue" ], "trait" : "goalPost", "x" : -50, "y" : -200, "curve" : 0, "vis" : true, "color" : "08FFD6", "cGroup" : ["blue" ] },
/* 55 */ { "bCoef" : 0.1, "cMask" : ["blue" ], "trait" : "goalPost", "x" : -50, "y" : 200, "curve" : 0, "vis" : true, "color" : "08FFD6", "cGroup" : ["blue" ] }
],
"segments" : [
{ "v0" : 4, "v1" : 5, "trait" : "goalNet", "curve" : -190, "color" : "ff0000" },
{ "v0" : 6, "v1" : 7, "trait" : "goalNet", "curve" : 190, "x" : 370, "color" : "ff0000" },
{ "v0" : 8, "v1" : 9, "trait" : "goalNet", "curve" : -190, "color" : "ffffff" },
{ "v0" : 10, "v1" : 11, "trait" : "goalNet", "curve" : -190, "color" : "ff0000" },
{ "curve" : 0, "vis" : true, "color" : "000000", "bCoef" : 0.1, "cMask" : ["blue" ], "trait" : "kickOffBarrier", "v0" : 12, "v1" : 13, "cGroup" : ["redKO" ] },
{ "v0" : 14, "v1" : 15, "trait" : "goalNet", "curve" : 190, "x" : 370, "color" : "ff0000" },
{ "v0" : 16, "v1" : 17, "trait" : "goalNet", "curve" : 190, "x" : 370, "color" : "ffffff" },
{ "curve" : 0, "vis" : false, "color" : "FFCCCC", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "goalNet", "v0" : 18, "v1" : 19 },
{ "curve" : 0, "vis" : false, "color" : "FFCCCC", "bCoef" : 1.5, "cMask" : ["ball" ], "trait" : "goalNet", "v0" : 20, "v1" : 21 },
{ "curve" : 0, "vis" : false, "color" : "FFCCCC", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "goalNet", "v0" : 22, "v1" : 23 },
{ "curve" : 1, "vis" : false, "color" : "FFCCCC", "bCoef" : 1, "trait" : "goalPost", "v0" : 24, "v1" : 25, "cMask" : ["ball" ] },
{ "curve" : 0, "vis" : false, "color" : "FFCCCC", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "goalPost", "v0" : 28, "v1" : 29 },
{ "curve" : 0, "vis" : false, "color" : "FFCCCC", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "goalPost", "v0" : 32, "v1" : 33 },
{ "curve" : 0, "vis" : true, "color" : "000000", "bCoef" : 0.1, "cMask" : ["red" ], "trait" : "goalPost", "v0" : 34, "v1" : 35, "cGroup" : ["blueKO" ] },
{ "vis" : true, "bCoef" : 1, "trait" : "goalNet", "v0" : 30, "v1" : 36, "color" : "ffffff", "x" : 370 },
{ "vis" : true, "cMask" : ["ball" ], "v0" : 26, "v1" : 37, "color" : "ffffff", "bCoef" : 1, "trait" : "goalNet", "x" : -370 },
{ "curve" : 0, "vis" : true, "color" : "000000", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "goalNet", "v0" : 38, "v1" : 8, "x" : -370 },
{ "curve" : 0, "vis" : true, "color" : "ffffff", "cMask" : ["ball" ], "trait" : "goalNet", "v0" : 39, "v1" : 19, "bCoef" : 1, "x" : 370 },
{ "curve" : 0, "vis" : true, "color" : "ffffff", "bCoef" : 1, "trait" : "goalNet", "v0" : 28, "v1" : 29, "cMask" : ["ball" ], "x" : -370 },
{ "curve" : 0, "vis" : true, "color" : "ffffff", "bCoef" : 1, "trait" : "goalNet", "v0" : 40, "v1" : 41, "x" : 370 },
{ "curve" : 0, "vis" : true, "color" : "ffffff", "bCoef" : 1, "trait" : "goalNet", "v0" : 42, "v1" : 23, "x" : -370 },
{ "curve" : 0, "vis" : true, "color" : "ffffff", "bCoef" : 1, "trait" : "goalNet", "v0" : 43, "v1" : 44, "x" : 370 },
{ "curve" : 0, "vis" : true, "color" : "ffffff", "bCoef" : 1.4, "cMask" : ["ball" ], "trait" : "goalNet", "v0" : 23, "v1" : 19 },
{ "curve" : 0, "vis" : true, "color" : "ffffff", "bCoef" : 1.4, "cMask" : ["ball" ], "trait" : "goalNet", "v0" : 26, "v1" : 30 },
{ "vis" : true, "color" : "f708ff", "bCoef" : 0.1, "v0" : 3, "v1" : 45, "x" : 0, "cMask" : ["wall" ], "curve" : 1.50571568977 },
{ "curve" : 0, "vis" : true, "color" : "08FFD6", "bCoef" : 0.1, "cMask" : ["red" ], "trait" : "goalPost", "v0" : 52, "v1" : 53, "cGroup" : ["red" ] },
{ "curve" : 0, "vis" : true, "color" : "08FFD6", "bCoef" : 0.1, "cMask" : ["blue" ], "trait" : "goalPost", "v0" : 54, "v1" : 55, "cGroup" : ["blue" ] }
],
"goals" : [
{ "p0" : [-369,-146 ], "p1" : [-369,-102 ], "team" : "red", "color" : "000000", "x" : -370 },
{ "p0" : [370,-110 ], "p1" : [370,-150 ], "team" : "blue", "x" : 370, "color" : "000000" },
{ "p0" : [-370,-35 ], "p1" : [-370,35 ], "team" : "red", "color" : "000000", "x" : -370 },
{ "p0" : [-370,103 ], "p1" : [-370,143 ], "team" : "red", "color" : "000000", "x" : -370 },
{ "p0" : [370,143 ], "p1" : [370,98 ], "team" : "blue", "x" : 370, "color" : "000000" },
{ "p0" : [370,35 ], "p1" : [370,-35 ], "team" : "blue", "x" : 370, "color" : "000000" }
],
"discs" : [
{ "pos" : [-370,-105 ], "trait" : "goalPost", "color" : "ffffff", "bCoef" : 0.5 },
{ "pos" : [-370,-144 ], "trait" : "goalPost", "color" : "ffffff", "bCoef" : 0.5 },
{ "pos" : [370,-105 ], "trait" : "goalPost", "color" : "ffffff", "bCoef" : 0.5 },
{ "pos" : [370,-143 ], "trait" : "goalPost", "color" : "ffffff", "bCoef" : 0.5 },
{ "pos" : [-370,35 ], "trait" : "goalPost", "color" : "ff0000", "bCoef" : 0.5 },
{ "pos" : [-370,-35 ], "trait" : "goalPost", "color" : "ff0000", "bCoef" : 0.5 },
{ "pos" : [-370,143 ], "trait" : "goalPost", "color" : "ffffff", "bCoef" : 0.5 },
{ "pos" : [-370,105 ], "trait" : "goalPost", "color" : "ffffff", "bCoef" : 0.5 },
{ "pos" : [370,143 ], "trait" : "goalPost", "color" : "ffffff", "bCoef" : 0.5 },
{ "pos" : [370,104 ], "trait" : "goalPost", "color" : "ffffff", "bCoef" : 0.5 },
{ "pos" : [370,41 ], "trait" : "goalPost", "color" : "ff0000", "bCoef" : 0.5 },
{ "pos" : [370,-35 ], "trait" : "goalPost", "color" : "ff0000", "bCoef" : 0.5 }
],
"planes" : [
{ "normal" : [0,-1 ], "dist" : -170, "trait" : "ballArea", "bCoef" : 1 },
{ "normal" : [0,1 ], "dist" : -170, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea" },
{ "normal" : [1,0 ], "dist" : -423.311779142, "bCoef" : 0.1 },
{ "normal" : [-1,0 ], "dist" : -423.310955619, "bCoef" : 0.1 },
{ "bCoef" : 0.1, "dist" : -200, "normal" : [0,-1 ] },
{ "bCoef" : 0.1, "dist" : -200, "normal" : [0,1 ] }
],
"traits" : {
"ballArea" : { "vis" : false, "bCoef" : 1, "cMask" : ["ball" ] },
"goalPost" : { "radius" : 8, "invMass" : 0, "bCoef" : 0.5 },
"goalNet" : { "vis" : true, "bCoef" : 0.1, "cMask" : ["ball" ] },
"kickOffBarrier" : { "vis" : false, "bCoef" : 0.1, "cGroup" : ["redKO","blueKO" ], "cMask" : ["red","blue" ] }
},
"playerPhysics" : {
"bCoef" : 0.5,
"invMass" : 0.5,
"damping" : 0.96,
"acceleration" : 0.12,
"kickingAcceleration" : 0.12,
"kickingDamping" : 0.96,
"kickStrength" : 13
},
"ballPhysics" : {
"color" : "FFFF0D",
"radius" : 10
}
}`
/* ----- VARIÁVEIS GLOBAIS ----- */
var playerAuth = [];
var authWhiteList = [];
const Role = { PLAYER: 0, ADMIN: 1, MASTER: 2 };
const Uniform = { COUNTRY: 0, CLUBLA: 1, CLUBEU: 2 };
var point = [{ "x": 0, "y": 0 }, { "x": 0, "y": 0 }];
var speedCoefficient = 100 / (5 * (0.99 ** 60 + 1));
var ballSpeed;
var lastPlayerKick = { id: 0, team: 0 };
var penultPlayerKick;
var undefeatedScore = 0;
var players;
var numberEachTeam;
var announcementColor = 0xFFFAFA;
var commands = {
"ajuda": {
"aliases": [],
"roles": Role.PLAYER,
"desc": `Esse comando mostra todos os outros comandos, e pode também explicar a função de cada comando. \nExemple: \'!help bb\' mostrará a função do comando \'bb\'.`,
"function": helpCommand,
},
"rr": {
"aliases": [],
"roles": Role.ADMIN,
"desc": `Esse comando reinicia o jogo.`,
"function": restartCommand,
},
"bb": {
"aliases": ["bye", "gn", "cya"],
"roles": Role.PLAYER,
"desc": `Esse comando te desconecta rapidamente.`,
"function": leaveCommand,
},
"claim": {
"aliases": [],
"roles": Role.ADMIN,
"desc": false,
"function": adminCommand,
},
"pass": {
"aliases": [],
"roles": Role.ADMIN,
"desc": `Esse comando reinicia o jogo.`,
"function": passwordCommand,
},
"uniforme": {
"aliases": [],
"roles": Role.PLAYER,
"desc": `Esse comando mostra os uniformes disponíveis para colocar no seu time.\nExemplo: \'!uniforme bah\' coloca o uniforme do bahia em seu time.`,
"function": uniformCommand,
},
"reserva": {
"aliases": [],
"roles": Role.PLAYER,
"desc": `Esse comando muda o uniforme do time para reserva.\nExemplo: \'!reserva\' coloca o uniforme reserva do seu time.`,
"function": reserveCommand,
}
}
var uniforms = {
/* SELEÇÕES */
"ale": {
"name": 'Alemanha',
"type": Uniform.COUNTRY,
"emoji": '⚫🔴🟡',
"angle": 90,
"textcolor": 0x000000,
"color1": 0xFFFFFF,
"color2": 0xFFFFFF,
"color3": 0xFFFFFF,
"angle2": 0,
"textcolor2": 0xEC1E31,
"color21": 0x232522,
"color22": 0x232522,
"color23": 0x232522,
},
"arg": {
"name": 'Argentina',
"type": Uniform.COUNTRY,
"emoji": '🔵⚪🔵',
"angle": 90,
"textcolor": 0x1F374B,
"color1": 0x75AADB,
"color2": 0xFFFFFF,
"color3": 0x75AADB,
"angle2": 0,
"textcolor2": 0x9F8334,
"color21": 0x103A73,
"color22": 0x103A73,
"color23": 0x103A73,
},
"bra": {
"name": 'Brasil',
"type": Uniform.COUNTRY,
"emoji": '⚫🔴🟡',
"angle": 360,
"textcolor": 0x27965A,
"color1": 0xDBB71B,
"color2": 0xDBB71B,
"color3": 0xDBB71B,
"angle2": 0,
"textcolor2": 0xDBB71B,
"color21": 0x1C56B4,
"color22": 0x1C56B4,
"color23": 0x1C56B4,
},
"esp": {
"name": 'Espanha',
"type": Uniform.COUNTRY,
"emoji": '🟢🟡🔵',
"angle": 90,
"textcolor": 0xFFFF00,
"color1": 0xFF0000,
"color2": 0xFF0000,
"color3": 0xFF0000,
"angle2": 0,
"textcolor2": 0xE4524A,
"color21": 0xEFEFEF,
"color22": 0xEFEFEF,
"color23": 0xEFEFEF,
},
"por": {
"name": 'Portugal',
"type": Uniform.COUNTRY,
"emoji": '🟢🔴🔴',
"angle": 0,
"textcolor": 0x289E1F,
"color1": 0xFF0000,
"color2": 0xFF0000,
"color3": 0xFF0000,
"angle2": 90,
"textcolor2": 0x0F303D,
"color21": 0x48776F,
"color22": 0x73CFB6,
"color23": 0x73CFB6,
},
"ita": {
"name": 'Italia',
"type": Uniform.COUNTRY,
"emoji": '🟢⚪🔴',
"angle": 0,
"textcolor": 0xFFFFFF,
"color1": 0x3646A9,
"color2": 0x3646A9,
"color3": 0x3646A9,
"angle2": 90,
"textcolor2": 0xDFC396,
"color21": 0x12282E,
"color22": 0x17433B,
"color23": 0x17433B,
},
"uru": {
"name": 'Uruguai',
"type": Uniform.COUNTRY,
"emoji": '⚪🔵⚪',
"angle": 0,
"textcolor": 0x212124,
"color1": 0x66A5D4,
"color2": 0x66A5D4,
"color3": 0x66A5D4,
"angle2": 0,
"textcolor2": 0x6CA0CF,
"color21": 0xE5E5E7,
"color22": 0xE5E5E7,
"color23": 0xE5E5E7,
},
"fra": {
"name": 'França',
"type": Uniform.COUNTRY,
"emoji": '🔵⚪🔴',
"angle": 90,
"textcolor": 0xF5F9F6,
"color1": 0x265ECF,
"color2": 0x384355,
"color3": 0x384355,
"angle2": 0,
"textcolor2": 0x3243B4,
"color21": 0xF5F9F6,
"color22": 0xF5F9F6,
"color23": 0xF5F9F6,
},
"ing": {
"name": 'Inglaterra',
"type": Uniform.COUNTRY,
"emoji": '⚪🔴⚪',
"angle": 0,
"textcolor": 0x0549A0,
"color1": 0xDEDFE4,
"color2": 0xDEDFE4,
"color3": 0xDEDFE4,
"angle2": 0,
"textcolor2": 0xE92715,
"color21": 0x2858AB,
"color22": 0x2858AB,
"color23": 0x2858AB,
},
"bel": {
"name": 'Bélgica',
"type": Uniform.COUNTRY,
"emoji": '⚫🔴🟡',
"angle": 0,
"textcolor": 0xCA9144,
"color1": 0xC4212A,
"color2": 0xC4212A,
"color3": 0xC4212A,
"angle2": 0,
"textcolor2": 0x37312B,
"color21": 0xEFC02E,
"color22": 0xEFC02E,
"color23": 0xEFC02E,
},
/* CLUBES LA */
"bah": {
"name": 'Bahia',
"type": Uniform.CLUBLA,
"emoji": '🔵⚪🔴',
"angle": 0,
"textcolor": 0xFFDD00,
"color1": 0xD10125,
"color2": 0xE3DFE4,
"color3": 0x1C3E94,
"angle2": 270,