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