@korial29/tiny-fps 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.js CHANGED
@@ -237,6 +237,8 @@ var Ctf = class {
237
237
  id: -1,
238
238
  left: 0
239
239
  }];
240
+ /** Ticks before a tackled flag can be sent home: it lies there, and the carrier's mates may take it. */
241
+ hold = [0, 0];
240
242
  constructor(world, rules) {
241
243
  this.world = world;
242
244
  this.rules = rules;
@@ -322,6 +324,7 @@ var Ctf = class {
322
324
  id: p.id,
323
325
  left: 120
324
326
  };
327
+ this.hold[k] = 120;
325
328
  return true;
326
329
  }
327
330
  /** The team whose flag the player carries, or -1. */
@@ -348,6 +351,7 @@ var Ctf = class {
348
351
  this.flags = [home(), home()];
349
352
  this.back = [0, 0];
350
353
  this.lock.forEach((l) => l.left = 0);
354
+ this.hold = [0, 0];
351
355
  this.clock = this.rules.timeLimit * 60;
352
356
  for (const m of this.mates.values()) m.caps = m.returns = 0;
353
357
  }
@@ -376,6 +380,7 @@ var Ctf = class {
376
380
  for (const k of [0, 1]) {
377
381
  const f = this.flags[k];
378
382
  this.lock[k].left--;
383
+ this.hold[k]--;
379
384
  if (f.state === FLAG.DROPPED) {
380
385
  f.left = Math.ceil(--this.back[k] / 60);
381
386
  if (this.back[k] <= 0) this.flags[k] = home();
@@ -390,7 +395,7 @@ var Ctf = class {
390
395
  f.z
391
396
  ];
392
397
  const near = players.filter((q) => touches(q.state, at));
393
- const mate = f.state === FLAG.DROPPED ? near.find((q) => q.team === k) : void 0;
398
+ const mate = f.state === FLAG.DROPPED && this.hold[k] <= 0 ? near.find((q) => q.team === k) : void 0;
394
399
  const foe = near.find((q) => q.team !== k && (q.id !== this.lock[k].id || this.lock[k].left <= 0));
395
400
  if (mate) {
396
401
  const m = this.mates.get(mate.id);
@@ -482,261 +487,707 @@ var stair = (z, y) => [
482
487
  y + .4 * k,
483
488
  z - k + 1
484
489
  ], TEX.CONCRETE));
490
+ [
491
+ roof(4, 57.7, 24, 76, 10),
492
+ roof(4, 36, 24, 53.5, 10, TEX.GLASS),
493
+ roof(4, 20, 24, 36, 12.4),
494
+ roof(4, -5, 24, 7, 12.4, TEX.GLASS),
495
+ roof(27, 20, 47, 50, 8),
496
+ roof(27, 60, 47, 76, 8, TEX.BRICK),
497
+ box([
498
+ 9,
499
+ 12.2,
500
+ 39
501
+ ], [
502
+ 19,
503
+ 12.6,
504
+ 47
505
+ ], TEX.STEEL),
506
+ ...stair(53, 10),
507
+ box([
508
+ 5,
509
+ 10,
510
+ 42
511
+ ], [
512
+ 5.5,
513
+ 14,
514
+ 42.5
515
+ ], TEX.STEEL),
516
+ box([
517
+ 5,
518
+ 10,
519
+ 50
520
+ ], [
521
+ 5.5,
522
+ 14,
523
+ 50.5
524
+ ], TEX.STEEL),
525
+ box([
526
+ 8,
527
+ 12.4,
528
+ 24
529
+ ], [
530
+ 20,
531
+ 12.85,
532
+ 24.45
533
+ ], TEX.STEEL),
534
+ box([
535
+ 36,
536
+ 8,
537
+ 22
538
+ ], [
539
+ 37,
540
+ 14.5,
541
+ 48
542
+ ], TEX.PAINT, TEX.PAINT, [
543
+ .15,
544
+ .72,
545
+ .62
546
+ ]),
547
+ box([
548
+ 30,
549
+ 8,
550
+ 28
551
+ ], [
552
+ 34,
553
+ 10,
554
+ 32
555
+ ], TEX.CONCRETE),
556
+ box([
557
+ 40,
558
+ 8,
559
+ 30
560
+ ], [
561
+ 44,
562
+ 10.2,
563
+ 34
564
+ ], TEX.PAINT, TEX.PAINT, [
565
+ 1,
566
+ .3,
567
+ .06
568
+ ]),
569
+ box([
570
+ 28,
571
+ 9.2,
572
+ 44
573
+ ], [
574
+ 35,
575
+ 12,
576
+ 46
577
+ ], TEX.STEEL, TEX.PAINT, [
578
+ .2,
579
+ .42,
580
+ 1
581
+ ]),
582
+ box([
583
+ 41.5,
584
+ 7.6,
585
+ 50
586
+ ], [
587
+ 42,
588
+ 8,
589
+ 60
590
+ ], TEX.STEEL),
591
+ box([
592
+ 30,
593
+ 8,
594
+ 64
595
+ ], [
596
+ 34,
597
+ 9.6,
598
+ 68
599
+ ], TEX.PAINT, TEX.PAINT, [
600
+ .2,
601
+ .8,
602
+ .3
603
+ ])
604
+ ];
605
+ /** The map is 240 m long: a point at z has its twin at ZED - z. */
606
+ var ZED = 240;
607
+ /** Team colours as brush tints: the flip swaps one for the other, so a red accent has a blue twin. */
608
+ var RED = [
609
+ 1,
610
+ .22,
611
+ .26
612
+ ];
613
+ var BLUE = [
614
+ .2,
615
+ .46,
616
+ 1
617
+ ];
618
+ var ORANGE = [
619
+ 1,
620
+ .42,
621
+ .08
622
+ ];
623
+ var TEAL = [
624
+ .12,
625
+ .7,
626
+ .62
627
+ ];
628
+ /** An accent: a slab of tinted paint, corners (x0, y0, z0) and (x1, y1, z1). */
629
+ var pad = (x0, y0, z0, x1, y1, z1, tint) => box([
630
+ x0,
631
+ y0,
632
+ z0
633
+ ], [
634
+ x1,
635
+ y1,
636
+ z1
637
+ ], TEX.PAINT, TEX.PAINT, tint);
485
638
  /**
486
- * A parkour test course, laid out for the moves of step 3 and flown with them by test/lines.ts.
487
- * Metres, y up, the course runs north (toward -z). A walking jump flies about 4.2 m on the flat, a
488
- * sprint jump 6.3 m, and reaches a box 1.7 m high; the hands catch a top 1.2 to 2.4 m above the
489
- * feet, and a fall that reaches a face within about 3.5 m is caught by them.
490
- *
491
- * - A: the start roof (10 m), red's base, with its spawns. B: a roof at 10 m, across a 4.2 m gap from A (a
492
- * run and a jump: walking off the edge falls).
493
- * - On B, a platform floating at 12.2 to 12.6 m (an overhang to walk under, a bump for a jump) and
494
- * a stair of six 0.4 m steps up to it. 3 m north of it, C (12.4 m): the south face of C above B
495
- * is a 2.4 m ledge to grab. Two poles stand by the platform.
496
- * - E (8 m), 3 m east of C and 4.4 m lower: a long wall (6.5 m high, 26 m long) to run along, ledges
497
- * 2.0 and 2.2 m high, and a 1.2 m low gap under a lintel to slide under, with a way round it.
498
- * - G (8 m) is across a 10 m drop from E, reached by a 0.5 m wide beam; it has a 1.6 m ledge.
499
- * - F (12.4 m) is 13 m north of C: a sprint and a jump fall short of it, and so does a walk with
500
- * the dash or the double jump; it takes the sprint and the jump and the dash or the double jump.
501
- * F is blue's base, with its spawns: the flags are 90 m and the chasm apart, and the way back is
502
- * the same line in reverse, then a drop to B and the A gap jumped south.
639
+ * A column of stairs: from `a` to `b` along `axis` (0 for x, 2 for z), across `w0` to `w1` on the
640
+ * other one, rising from `y` to `top` in steps of at most 0.46 m, each step a solid from `low`.
503
641
  */
504
- var ROOFTOPS = {
505
- name: "Rooftops",
506
- brushes: [
507
- roof(4, 57.7, 24, 76, 10),
508
- roof(4, 36, 24, 53.5, 10, TEX.GLASS),
509
- roof(4, 20, 24, 36, 12.4),
510
- roof(4, -5, 24, 7, 12.4, TEX.GLASS),
511
- roof(27, 20, 47, 50, 8),
512
- roof(27, 60, 47, 76, 8, TEX.BRICK),
513
- box([
514
- 9,
515
- 12.2,
516
- 39
642
+ var stairs = (axis, a, b, w0, w1, y, top, low = BASE) => {
643
+ const n = Math.ceil((top - y) / .46);
644
+ return Array.from({ length: n }, (_, i) => {
645
+ const [s0, s1] = [a + (b - a) * i / n, a + (b - a) * (i + 1) / n].sort((p, q) => p - q);
646
+ const up = y + (top - y) * (i + 1) / n;
647
+ return axis === 0 ? box([
648
+ s0,
649
+ low,
650
+ w0
517
651
  ], [
518
- 19,
519
- 12.6,
520
- 47
521
- ], TEX.STEEL),
522
- ...stair(53, 10),
523
- box([
524
- 5,
525
- 10,
526
- 42
652
+ s1,
653
+ up,
654
+ w1
655
+ ], TEX.CONCRETE) : box([
656
+ w0,
657
+ low,
658
+ s0
527
659
  ], [
528
- 5.5,
529
- 14,
530
- 42.5
531
- ], TEX.STEEL),
532
- box([
533
- 5,
534
- 10,
535
- 50
536
- ], [
537
- 5.5,
538
- 14,
539
- 50.5
540
- ], TEX.STEEL),
541
- box([
542
- 8,
543
- 12.4,
544
- 24
545
- ], [
546
- 20,
547
- 12.85,
548
- 24.45
549
- ], TEX.STEEL),
550
- box([
551
- 36,
552
- 8,
553
- 22
554
- ], [
555
- 37,
556
- 14.5,
557
- 48
558
- ], TEX.PAINT, TEX.PAINT, [
559
- .15,
560
- .72,
561
- .62
562
- ]),
563
- box([
564
- 30,
565
- 8,
566
- 28
567
- ], [
568
- 34,
569
- 10,
570
- 32
571
- ], TEX.CONCRETE),
572
- box([
573
- 40,
574
- 8,
575
- 30
576
- ], [
577
- 44,
578
- 10.2,
579
- 34
580
- ], TEX.PAINT, TEX.PAINT, [
581
- 1,
582
- .3,
583
- .06
584
- ]),
585
- box([
660
+ w1,
661
+ up,
662
+ s1
663
+ ], TEX.CONCRETE);
664
+ });
665
+ };
666
+ /**
667
+ * A ledge ladder: one platform 4 m wide and `d` deep per top in `tops`, the first at (x, z), each
668
+ * next one (dx, dz) further, over the roof at `low`. The hands catch the face of each from the one before.
669
+ */
670
+ var ladder = (x, z, dx, dz, d, low, tops) => tops.map((top, k) => box([
671
+ x + k * dx,
672
+ low,
673
+ z + k * dz
674
+ ], [
675
+ x + k * dx + 4,
676
+ top,
677
+ z + k * dz + d
678
+ ], TEX.STEEL, TEX.CONCRETE));
679
+ /** Red's half: z from 120 to 240, then flipped. */
680
+ var half = [
681
+ roof(12, 212, 52, 240, 26, TEX.GLASS),
682
+ pad(12, 26, 212, 52, 26.12, 212.5, RED),
683
+ pad(12, 26, 239.5, 52, 26.12, 240, RED),
684
+ pad(12, 26, 212.5, 12.5, 26.12, 239.5, RED),
685
+ pad(51.5, 26, 212.5, 52, 26.12, 239.5, RED),
686
+ pad(11.6, 12, 222, 12, 25.8, 232, RED),
687
+ pad(28, 12, 211.4, 31, 25.5, 212, RED),
688
+ box([
689
+ 19,
690
+ 26,
691
+ 222
692
+ ], [
693
+ 22,
694
+ 27.4,
695
+ 225
696
+ ], TEX.STEEL),
697
+ box([
698
+ 42,
699
+ 26,
700
+ 222
701
+ ], [
702
+ 45,
703
+ 27.4,
704
+ 225
705
+ ], TEX.STEEL),
706
+ box([
707
+ 29,
708
+ 26,
709
+ 229
710
+ ], [
711
+ 35,
712
+ 27.1,
713
+ 229.6
714
+ ], TEX.CONCRETE),
715
+ roof(6, 164, 26, 201, 26, TEX.GLASS),
716
+ roof(6, 134, 26, 147, 26, TEX.GLASS),
717
+ roof(6, 201, 26, 212, 19),
718
+ roof(15, 147, 26, 164, 19),
719
+ box([
720
+ 14,
721
+ 26,
722
+ 164
723
+ ], [
724
+ 15,
725
+ 32,
726
+ 196
727
+ ], TEX.PAINT, TEX.PAINT, TEAL),
728
+ box([
729
+ 14,
730
+ 18,
731
+ 147
732
+ ], [
733
+ 15,
734
+ 32,
735
+ 164
736
+ ], TEX.PAINT, TEX.PAINT, TEAL),
737
+ box([
738
+ 14,
739
+ 26,
740
+ 134
741
+ ], [
742
+ 15,
743
+ 32,
744
+ 147
745
+ ], TEX.PAINT, TEX.PAINT, TEAL),
746
+ ...ladder(6, 201, 7, 0, 4, 19, [
747
+ 21.2,
748
+ 23.4,
749
+ 25
750
+ ]),
751
+ ...[
752
+ [
753
+ 18,
754
+ 152,
755
+ 22,
756
+ 156,
757
+ 21.2
758
+ ],
759
+ [
760
+ 18,
761
+ 158,
762
+ 22,
763
+ 162,
764
+ 23.4
765
+ ],
766
+ [
767
+ 23,
768
+ 160,
769
+ 26,
770
+ 164,
771
+ 25
772
+ ]
773
+ ].map(([x0, z0, x1, z1, top]) => box([
774
+ x0,
775
+ 19,
776
+ z0
777
+ ], [
778
+ x1,
779
+ top,
780
+ z1
781
+ ], TEX.STEEL, TEX.CONCRETE)),
782
+ box([
783
+ 20,
784
+ 26,
785
+ 178
786
+ ], [
787
+ 23,
788
+ 27.3,
789
+ 181
790
+ ], TEX.STEEL),
791
+ box([
792
+ 8,
793
+ 26,
794
+ 176
795
+ ], [
796
+ 11,
797
+ 27.2,
798
+ 179
799
+ ], TEX.STEEL),
800
+ box([
801
+ 8,
802
+ 26,
803
+ 190
804
+ ], [
805
+ 11,
806
+ 27.3,
807
+ 193
808
+ ], TEX.STEEL),
809
+ box([
810
+ 20,
811
+ 26,
812
+ 140
813
+ ], [
814
+ 23,
815
+ 27.3,
816
+ 143
817
+ ], TEX.STEEL),
818
+ roof(32, 186, 76, 209, 19),
819
+ pad(32, 19, 207.5, 76, 19.1, 209, RED),
820
+ ...ladder(33, 209, 7, 0, 3, 19, [
821
+ 21.2,
822
+ 23.4,
823
+ 25
824
+ ]),
825
+ ...[
826
+ [
586
827
  28,
587
- 9.2,
588
- 44
589
- ], [
590
- 35,
591
- 12,
592
- 46
593
- ], TEX.STEEL, TEX.PAINT, [
594
- .2,
595
- .42,
596
- 1
597
- ]),
598
- box([
599
- 41.5,
600
- 7.6,
601
- 50
602
- ], [
603
- 42,
604
- 8,
605
- 60
606
- ], TEX.STEEL),
607
- box([
828
+ 196,
829
+ 32,
830
+ 200,
831
+ 21.2
832
+ ],
833
+ [
834
+ 28,
835
+ 190,
836
+ 32,
837
+ 194,
838
+ 23.4
839
+ ],
840
+ [
841
+ 26,
842
+ 184,
608
843
  30,
609
- 8,
610
- 64
611
- ], [
612
- 34,
613
- 9.6,
614
- 68
615
- ], TEX.PAINT, TEX.PAINT, [
616
- .2,
617
- .8,
618
- .3
619
- ])
844
+ 188,
845
+ 25
846
+ ]
847
+ ].map(([x0, z0, x1, z1, top]) => box([
848
+ x0,
849
+ BASE,
850
+ z0
851
+ ], [
852
+ x1,
853
+ top,
854
+ z1
855
+ ], TEX.STEEL, TEX.CONCRETE)),
856
+ roof(32, 166, 64, 182, 21.2, TEX.GLASS),
857
+ roof(32, 140, 64, 161, 19),
858
+ box([
859
+ 40,
860
+ 21.2,
861
+ 172
862
+ ], [
863
+ 44,
864
+ 22.6,
865
+ 176
866
+ ], TEX.STEEL),
867
+ box([
868
+ 52,
869
+ 19,
870
+ 148
871
+ ], [
872
+ 57,
873
+ 20.3,
874
+ 151
875
+ ], TEX.STEEL),
876
+ box([
877
+ 38,
878
+ 19,
879
+ 196
880
+ ], [
881
+ 41,
882
+ 20.4,
883
+ 199
884
+ ], TEX.STEEL),
885
+ box([
886
+ 60,
887
+ 19,
888
+ 200
889
+ ], [
890
+ 63,
891
+ 20.4,
892
+ 203
893
+ ], TEX.STEEL),
894
+ box([
895
+ 52,
896
+ 19,
897
+ 190
898
+ ], [
899
+ 58,
900
+ 20.6,
901
+ 194
902
+ ], TEX.STEEL),
903
+ box([
904
+ 66,
905
+ 19,
906
+ 204
907
+ ], [
908
+ 72,
909
+ 20.2,
910
+ 207
911
+ ], TEX.STEEL),
912
+ box([
913
+ 56,
914
+ 21.2,
915
+ 170
916
+ ], [
917
+ 60,
918
+ 22.4,
919
+ 174
920
+ ], TEX.STEEL),
921
+ box([
922
+ 34,
923
+ 19,
924
+ 152
925
+ ], [
926
+ 37,
927
+ 20.3,
928
+ 156
929
+ ], TEX.STEEL),
930
+ ...ladder(36, 135, 18, 0, 3, 15, [17.2, 17.2]),
931
+ ...ladder(6.5, 129, 6, 0, 4, 15, [
932
+ 17.2,
933
+ 19.4,
934
+ 21.6,
935
+ 23.8
936
+ ]),
937
+ roof(76, 213, 100, 240, 14.5, TEX.STEEL),
938
+ pad(76, 14.5, 238.5, 100, 14.6, 240, RED),
939
+ roof(76, 185, 100, 209, 14.5),
940
+ roof(76, 138, 100, 181, 14.5, TEX.GLASS),
941
+ box([
942
+ 80,
943
+ 15.7,
944
+ 158
945
+ ], [
946
+ 96,
947
+ 17.7,
948
+ 162
949
+ ], TEX.STEEL, TEX.PAINT, ORANGE),
950
+ box([
951
+ 82,
952
+ 14.5,
953
+ 234
954
+ ], [
955
+ 85,
956
+ 15.9,
957
+ 237
958
+ ], TEX.STEEL),
959
+ box([
960
+ 91,
961
+ 14.5,
962
+ 190
963
+ ], [
964
+ 94,
965
+ 15.9,
966
+ 193
967
+ ], TEX.STEEL),
968
+ box([
969
+ 80,
970
+ 14.5,
971
+ 204
972
+ ], [
973
+ 83,
974
+ 15.6,
975
+ 207
976
+ ], TEX.STEEL),
977
+ box([
978
+ 78,
979
+ 14.5,
980
+ 170
981
+ ], [
982
+ 81,
983
+ 15.9,
984
+ 173
985
+ ], TEX.STEEL),
986
+ box([
987
+ 92,
988
+ 14.5,
989
+ 146
990
+ ], [
991
+ 95,
992
+ 15.7,
993
+ 149
994
+ ], TEX.STEEL),
995
+ box([
996
+ 92,
997
+ 14.5,
998
+ 222
999
+ ], [
1000
+ 96,
1001
+ 15.8,
1002
+ 226
1003
+ ], TEX.STEEL),
1004
+ ...stairs(0, 76, 52, 226, 232, 14.5, 26),
1005
+ ...stairs(0, 85, 76, 196, 202, 14.5, 19, 14.5)
1006
+ ];
1007
+ /** What stands on the centre line, symmetric as written: the plaza, its dais and canopy, the beam. */
1008
+ var centre = [
1009
+ roof(6, 106, 62, 134, 15),
1010
+ roof(62, 106, 100, 134, 14.5),
1011
+ box([
1012
+ 34,
1013
+ 15,
1014
+ 112
1015
+ ], [
1016
+ 54,
1017
+ 17.2,
1018
+ 128
1019
+ ], TEX.CONCRETE),
1020
+ pad(38, 17.2, 116, 50, 17.3, 124, ORANGE),
1021
+ ...[
1022
+ [35, 113],
1023
+ [35, 126.2],
1024
+ [51, 113],
1025
+ [51, 126.2]
1026
+ ].map(([x, z]) => box([
1027
+ x,
1028
+ 17.2,
1029
+ z
1030
+ ], [
1031
+ x + .8,
1032
+ 21.5,
1033
+ z + .8
1034
+ ], TEX.STEEL)),
1035
+ box([
1036
+ 34.6,
1037
+ 21.5,
1038
+ 112.6
1039
+ ], [
1040
+ 52.2,
1041
+ 21.9,
1042
+ 127.4
1043
+ ], TEX.GLASS),
1044
+ box([
1045
+ 14,
1046
+ 15,
1047
+ 114
1048
+ ], [
1049
+ 17,
1050
+ 16.5,
1051
+ 117
1052
+ ], TEX.STEEL),
1053
+ box([
1054
+ 14,
1055
+ 15,
1056
+ 123
1057
+ ], [
1058
+ 17,
1059
+ 16.5,
1060
+ 126
1061
+ ], TEX.STEEL),
1062
+ box([
1063
+ 56,
1064
+ 15,
1065
+ 114
1066
+ ], [
1067
+ 59,
1068
+ 16.5,
1069
+ 117
1070
+ ], TEX.STEEL),
1071
+ box([
1072
+ 56,
1073
+ 15,
1074
+ 123
1075
+ ], [
1076
+ 59,
1077
+ 16.5,
1078
+ 126
1079
+ ], TEX.STEEL),
1080
+ box([
1081
+ 15.35,
1082
+ 25.5,
1083
+ 106
1084
+ ], [
1085
+ 15.85,
1086
+ 26,
1087
+ 134
1088
+ ], TEX.STEEL),
1089
+ box([
1090
+ 70,
1091
+ 14.5,
1092
+ 108
1093
+ ], [
1094
+ 70.8,
1095
+ 38,
1096
+ 108.8
1097
+ ], TEX.STEEL),
1098
+ box([
1099
+ 70,
1100
+ 14.5,
1101
+ 131.2
1102
+ ], [
1103
+ 70.8,
1104
+ 38,
1105
+ 132
1106
+ ], TEX.STEEL),
1107
+ box([
1108
+ 66,
1109
+ 14.5,
1110
+ 110
1111
+ ], [
1112
+ 69,
1113
+ 15.9,
1114
+ 113
1115
+ ], TEX.STEEL),
1116
+ box([
1117
+ 66,
1118
+ 14.5,
1119
+ 127
1120
+ ], [
1121
+ 69,
1122
+ 15.9,
1123
+ 130
1124
+ ], TEX.STEEL)
1125
+ ];
1126
+ /** The twin of a brush across the centre line. */
1127
+ var flip = (b) => ({
1128
+ ...b,
1129
+ min: [
1130
+ b.min[0],
1131
+ b.min[1],
1132
+ ZED - b.max[2]
1133
+ ],
1134
+ max: [
1135
+ b.max[0],
1136
+ b.max[1],
1137
+ ZED - b.min[2]
1138
+ ],
1139
+ tint: b.tint === RED ? BLUE : b.tint
1140
+ });
1141
+ /** Where a team starts: two rows facing the other end. */
1142
+ var row = (yaw, z, z2) => [...[
1143
+ 16,
1144
+ 22,
1145
+ 28,
1146
+ 34,
1147
+ 40
1148
+ ].map((x) => [
1149
+ x,
1150
+ 26,
1151
+ z,
1152
+ yaw
1153
+ ]), ...[
1154
+ 19,
1155
+ 31,
1156
+ 43
1157
+ ].map((x) => [
1158
+ x,
1159
+ 26,
1160
+ z2,
1161
+ yaw
1162
+ ])];
1163
+ var HIGHLINE = {
1164
+ name: "Highline",
1165
+ brushes: [
1166
+ ...half,
1167
+ ...half.map(flip),
1168
+ ...centre
620
1169
  ],
621
1170
  teams: [{
622
1171
  base: [
623
- 14,
624
- 10,
625
- 62.5
1172
+ 32,
1173
+ 26,
1174
+ 224
626
1175
  ],
627
- spawns: [
628
- [
629
- 6,
630
- 10,
631
- 72,
632
- 0
633
- ],
634
- [
635
- 10,
636
- 10,
637
- 72,
638
- 0
639
- ],
640
- [
641
- 14,
642
- 10,
643
- 72,
644
- 0
645
- ],
646
- [
647
- 18,
648
- 10,
649
- 72,
650
- 0
651
- ],
652
- [
653
- 22,
654
- 10,
655
- 72,
656
- 0
657
- ],
658
- [
659
- 8,
660
- 10,
661
- 66,
662
- 0
663
- ],
664
- [
665
- 14,
666
- 10,
667
- 66,
668
- 0
669
- ],
670
- [
671
- 20,
672
- 10,
673
- 66,
674
- 0
675
- ]
676
- ]
1176
+ spawns: row(0, 236, 231)
677
1177
  }, {
678
1178
  base: [
679
- 14,
680
- 12.4,
681
- 2.2
1179
+ 32,
1180
+ 26,
1181
+ 16
682
1182
  ],
683
- spawns: [
684
- [
685
- 6,
686
- 12.4,
687
- -3,
688
- Math.PI
689
- ],
690
- [
691
- 10,
692
- 12.4,
693
- -3,
694
- Math.PI
695
- ],
696
- [
697
- 14,
698
- 12.4,
699
- -3,
700
- Math.PI
701
- ],
702
- [
703
- 18,
704
- 12.4,
705
- -3,
706
- Math.PI
707
- ],
708
- [
709
- 22,
710
- 12.4,
711
- -3,
712
- Math.PI
713
- ],
714
- [
715
- 8,
716
- 12.4,
717
- .5,
718
- Math.PI
719
- ],
720
- [
721
- 14,
722
- 12.4,
723
- .5,
724
- Math.PI
725
- ],
726
- [
727
- 20,
728
- 12.4,
729
- .5,
730
- Math.PI
731
- ]
732
- ]
1183
+ spawns: row(Math.PI, 4, 9)
733
1184
  }],
734
1185
  floor: -25,
735
1186
  sun: {
736
1187
  dir: [
1188
+ .8,
737
1189
  .6,
738
- .64,
739
- .48
1190
+ 0
740
1191
  ],
741
1192
  color: [
742
1193
  2.6,
@@ -757,7 +1208,7 @@ var ROOFTOPS = {
757
1208
  .72,
758
1209
  .86,
759
1210
  .98,
760
- .0055
1211
+ .0035
761
1212
  ]
762
1213
  };
763
1214
  // src/shared/physics.ts
@@ -1576,7 +2027,7 @@ var Room = class {
1576
2027
  /** Round-robin cursor over the spawn points of each team, used once they are all taken. */
1577
2028
  rr = [0, 0];
1578
2029
  /** Missing rules fall back to RULES. */
1579
- constructor(rules = {}, map = ROOFTOPS) {
2030
+ constructor(rules = {}, map = HIGHLINE) {
1580
2031
  this.rules = {
1581
2032
  ...RULES,
1582
2033
  ...rules