@korial29/tiny-fps 0.121.0 → 0.123.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/README.md +1 -1
- package/dist/index.js +12 -12
- package/dist/local.js +1 -1
- package/dist/server.js +165 -72
- package/dist/types/client/moonscape.d.ts +13 -0
- package/dist/types/shared/moon.d.ts +18 -21
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -3746,71 +3746,50 @@ var DISHES = [
|
|
|
3746
3746
|
[186, 347]
|
|
3747
3747
|
];
|
|
3748
3748
|
var WRECK = [BOWLS[0][0] - 4.5, 140];
|
|
3749
|
-
/**
|
|
3750
|
-
var
|
|
3749
|
+
/** Where the boulders stood, red's (x, z, radius): the field's six stones, those along the three walls of the half, and the boulder field's. No rock there now, no box: the scenery scatters pebbles thickest round each. */
|
|
3750
|
+
var SITES = [
|
|
3751
3751
|
[
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
4,
|
|
3756
|
-
2.2
|
|
3752
|
+
6,
|
|
3753
|
+
174,
|
|
3754
|
+
2.5
|
|
3757
3755
|
],
|
|
3758
3756
|
[
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
5,
|
|
3763
|
-
3
|
|
3757
|
+
32.5,
|
|
3758
|
+
156.5,
|
|
3759
|
+
3.1
|
|
3764
3760
|
],
|
|
3765
3761
|
[
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
3,
|
|
3770
|
-
1.6
|
|
3762
|
+
67.5,
|
|
3763
|
+
159.5,
|
|
3764
|
+
1.9
|
|
3771
3765
|
],
|
|
3772
3766
|
[
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
4,
|
|
3777
|
-
2.6
|
|
3767
|
+
97.5,
|
|
3768
|
+
166,
|
|
3769
|
+
2.8
|
|
3778
3770
|
],
|
|
3779
3771
|
[
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
5,
|
|
3784
|
-
3.2
|
|
3772
|
+
128,
|
|
3773
|
+
177.5,
|
|
3774
|
+
3.4
|
|
3785
3775
|
],
|
|
3786
3776
|
[
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3777
|
+
94,
|
|
3778
|
+
188,
|
|
3779
|
+
2.5
|
|
3780
|
+
],
|
|
3781
|
+
...Array.from({ length: 36 }, (_, i) => {
|
|
3782
|
+
const h = (k) => hash(i, k, 41);
|
|
3783
|
+
const b = Math.floor(h(1) * 3);
|
|
3784
|
+
const [x, z0] = b < 2 ? [(b ? 151 : 0) + h(2) * 9, 150 + h(3) * 122] : [5 + h(2) * 150, 273 + h(3) * 7];
|
|
3785
|
+
return [
|
|
3786
|
+
x,
|
|
3787
|
+
z0 + (b === 0 && Math.abs(z0 - 174) < 8 ? 16 : 0),
|
|
3788
|
+
.6 + 2.4 * h(4) * h(4)
|
|
3789
|
+
];
|
|
3790
|
+
}),
|
|
3791
|
+
...FIELD
|
|
3793
3792
|
];
|
|
3794
|
-
/**
|
|
3795
|
-
* Boulders along the three walls of red's half (x, z, radius), not on the field's first stone
|
|
3796
|
-
* (4..8, 172..176). Each stands in the boxes of a crag reaching REACH r (the brushes below); one whose box
|
|
3797
|
-
* would leave a crack a player could not get out of next to an earlier one is left out.
|
|
3798
|
-
*/
|
|
3799
|
-
/** How far a boulder of radius r reaches from its middle, in r: its boxes' footprint. */
|
|
3800
|
-
var REACH = .85;
|
|
3801
|
-
var BOULDERS = Array.from({ length: 36 }, (_, i) => {
|
|
3802
|
-
const h = (k) => hash(i, k, 41);
|
|
3803
|
-
const b = Math.floor(h(1) * 3);
|
|
3804
|
-
const [x, z0] = b < 2 ? [(b ? 151 : 0) + h(2) * 9, 150 + h(3) * 122] : [5 + h(2) * 150, 273 + h(3) * 7];
|
|
3805
|
-
return [
|
|
3806
|
-
x,
|
|
3807
|
-
z0 + (b === 0 && Math.abs(z0 - 174) < 8 ? 16 : 0),
|
|
3808
|
-
.6 + 2.4 * h(4) * h(4)
|
|
3809
|
-
];
|
|
3810
|
-
}).filter(([x, z, r], i, l) => !l.slice(0, i).some(([u, w, q]) => {
|
|
3811
|
-
const gap = Math.max(Math.abs(x - u), Math.abs(z - w)) - REACH * (r + q);
|
|
3812
|
-
return gap > 0 && gap < 1;
|
|
3813
|
-
}));
|
|
3814
3793
|
/** What the craters dig and raise at (x, z from the centre line), and how far in a pit's crater it is (1 on its terrace, 0 well clear): the hills fade out there. */
|
|
3815
3794
|
var bowls = (x, z) => {
|
|
3816
3795
|
let [h, m] = [0, 0];
|
|
@@ -3837,6 +3816,73 @@ var across = (cx, x) => {
|
|
|
3837
3816
|
return f(x0) + (f(x0 + 4) - f(x0)) * (x - x0) / 4;
|
|
3838
3817
|
};
|
|
3839
3818
|
/**
|
|
3819
|
+
* Where the small relief stays out, besides FLATS: the strips whose jumps are measured, x0, z0, x1,
|
|
3820
|
+
* z1 with z from the centre line. The west long jump's take-off and landing, the bridge's ends,
|
|
3821
|
+
* the east stones' approaches, and the two mounds a rover flies the rille from with their flanks
|
|
3822
|
+
* (their run-ups are in FLATS). All to 16 m from the centre line, where the field's mounds begin
|
|
3823
|
+
* at the nearest: what was level there stays level.
|
|
3824
|
+
*/
|
|
3825
|
+
var STRIPS = [
|
|
3826
|
+
[
|
|
3827
|
+
8,
|
|
3828
|
+
0,
|
|
3829
|
+
28,
|
|
3830
|
+
16
|
|
3831
|
+
],
|
|
3832
|
+
[
|
|
3833
|
+
70,
|
|
3834
|
+
0,
|
|
3835
|
+
90,
|
|
3836
|
+
16
|
|
3837
|
+
],
|
|
3838
|
+
[
|
|
3839
|
+
122,
|
|
3840
|
+
0,
|
|
3841
|
+
139,
|
|
3842
|
+
16
|
|
3843
|
+
],
|
|
3844
|
+
[
|
|
3845
|
+
36,
|
|
3846
|
+
0,
|
|
3847
|
+
60,
|
|
3848
|
+
16
|
|
3849
|
+
],
|
|
3850
|
+
[
|
|
3851
|
+
132,
|
|
3852
|
+
0,
|
|
3853
|
+
156,
|
|
3854
|
+
16
|
|
3855
|
+
]
|
|
3856
|
+
];
|
|
3857
|
+
/**
|
|
3858
|
+
* The small relief, laid over everything: the moon is rugged, no ground is dead flat for long.
|
|
3859
|
+
* `out` is how far out of the arena (under 0: in it). The lattice is 4 m: it carries hummocks and
|
|
3860
|
+
* pans from 8 m across, no less (what is finer is drawn only), and a patch is exactly level only
|
|
3861
|
+
* if every node within 5.7 m of it is, so a level patch costs 6 m of margin whatever its size. In
|
|
3862
|
+
* the arena, over the slabs, only hummocks (up to 0.45 m, nothing under the floor), gentle;
|
|
3863
|
+
* outside, hummocks, shallow pans and a slow swell, -0.45 to 0.55 m, on every 10 m or so. It is
|
|
3864
|
+
* exactly 0 on the arena's edge (the slabs end there), on the lips, on
|
|
3865
|
+
* STRIPS, on FLATS (a base, a rover's place; 1.8 m round a pack or a spawn), and stays off
|
|
3866
|
+
* the jump ramps outside with their run-ups and landings, the craters and the dishes' hill.
|
|
3867
|
+
*/
|
|
3868
|
+
var rough = (x, z, out) => {
|
|
3869
|
+
const gap = (l, by, over) => l.reduce((m, [x0, z0, x1, z1]) => m * sm((far(Math.max(x0 - x, x - x1, 0), Math.max(z0 - z, z - z1, 0)) - by) / over), 1);
|
|
3870
|
+
if (out < 0) {
|
|
3871
|
+
const i = Math.min(Math.max(Math.floor(x), 6), LIP.length - 7);
|
|
3872
|
+
const lip = Math.max(...LIP.slice(i - 6, i + 7), 0);
|
|
3873
|
+
return (.6 * Math.max(noise(x / 5, z / 5, 61) - .42, 0) + .25 * Math.max(noise(x / 9, z / 9, 67) - .5, 0)) * sm(-out / 4) * sm((z - 14 - lip) / 3) * gap(FLATS.filter((f) => f[0] === f[2]), 7.5, 2) * gap(FLATS.filter((f) => f[0] < f[2]), 5.7, 2) * gap(STRIPS, 5.7, 2);
|
|
3874
|
+
}
|
|
3875
|
+
let m = sm(out / 4) * (Math.abs(x - 80) < 96 ? sm((z - 10) / 6) : 1);
|
|
3876
|
+
for (const [rx, rz, ax, az] of RAMPS) {
|
|
3877
|
+
const [p, q] = [x - rx, z - rz];
|
|
3878
|
+
const a = p * ax + q * az;
|
|
3879
|
+
m *= sm((far(Math.max(-22 - a, a - 38, 0), Math.max(Math.abs(p * az - q * ax) - 10, 0)) - 2) / 4);
|
|
3880
|
+
}
|
|
3881
|
+
for (const [cx, cz, r] of BOWLS) m *= sm((far(x - cx, z - cz) / r - 1.3) / .25);
|
|
3882
|
+
m *= sm((far(x - HILL[0], z - HILL[1]) - 40) / 20);
|
|
3883
|
+
return (.75 * Math.max(noise(x / 5, z / 5, 61) - .42, 0) - .8 * Math.max(noise(x / 7, z / 7, 63) - .6, 0) + .25 * (noise(x / 11, z / 11, 65) - .5)) * m;
|
|
3884
|
+
};
|
|
3885
|
+
/**
|
|
3840
3886
|
* The height of the crater floor round the arena. Only + - * /, Math.sqrt, Math.abs, min, max, floor
|
|
3841
3887
|
* and the integer hash: every engine builds the same lattice. In the arena, the field (see FLATS)
|
|
3842
3888
|
* and the mounds; exactly 0 for 12 m round it (a rectangle on lattice lines, so between the nodes
|
|
@@ -3853,14 +3899,14 @@ var at$1 = (x, z) => {
|
|
|
3853
3899
|
let h = sm((out - 12) / 48) * (1 - .7 * sm(t)) * (16 * noise(x / 96, z / 96, 1) + 6 * noise(x / 52, z / 52, 4) + 5 * noise(x / 36, z / 36, 2) + 1.4 * noise(x / 22, z / 22, 3) - 14.2);
|
|
3854
3900
|
if (out < 0) {
|
|
3855
3901
|
let m = sm((z - 16 - 10 * noise(x / 19, .5, 37)) / 8) * sm(-out / 10);
|
|
3856
|
-
for (const [x0, z0, x1, z1] of FLATS) m *= sm((far(Math.max(x0 - x, x - x1, 0), Math.max(z0 - z, z - z1, 0)) - 6) / 6);
|
|
3902
|
+
for (const [x0, z0, x1, z1] of FLATS) m *= sm((far(Math.max(x0 - x, x - x1, 0), Math.max(z0 - z, z - z1, 0)) - (x0 < x1 ? 6 : 7.5)) / 6);
|
|
3857
3903
|
h = m * Math.min(Math.max(4.8 * noise(x / 15, z / 15, 21) - .9, 0) + Math.max(3 * noise(x / 31, z / 31, 23) - .6, 0), 2.6);
|
|
3858
3904
|
const s = sm((10 - far(x - HOLLOW[0], z - (HOLLOW[1] - 140))) / 8);
|
|
3859
3905
|
h = h * (1 - s) - HOLLOW[2] * s;
|
|
3860
3906
|
for (const cx of MOUNDS) h += MOUND * c1((8 + RISE - z) / RISE) * across(cx, x);
|
|
3861
3907
|
h = z < 8 ? 0 : h;
|
|
3862
3908
|
}
|
|
3863
|
-
h = (out < 0 ? h : h * (1 - dug[1])) + dug[0];
|
|
3909
|
+
h = (out < 0 ? h : h * (1 - dug[1])) + dug[0] + rough(x, z, out) * (1 - dug[1]) * (1 - sm(t));
|
|
3864
3910
|
for (const [rx, rz, ax, az] of RAMPS) {
|
|
3865
3911
|
const [p, q] = [x - rx, z - rz];
|
|
3866
3912
|
const a = p * ax + q * az;
|
|
@@ -4125,11 +4171,65 @@ var crag = (x, z, R, H, s) => {
|
|
|
4125
4171
|
])
|
|
4126
4172
|
};
|
|
4127
4173
|
};
|
|
4128
|
-
/** Red's
|
|
4129
|
-
var CRAGS =
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4174
|
+
/** Red's boulders, each with the boxes it collides with; blue's are their mirrors. */
|
|
4175
|
+
var CRAGS = [
|
|
4176
|
+
[
|
|
4177
|
+
32.5,
|
|
4178
|
+
156.5,
|
|
4179
|
+
3.1,
|
|
4180
|
+
3.45,
|
|
4181
|
+
62
|
|
4182
|
+
],
|
|
4183
|
+
[
|
|
4184
|
+
67.5,
|
|
4185
|
+
159.5,
|
|
4186
|
+
1.86,
|
|
4187
|
+
1.84,
|
|
4188
|
+
63
|
|
4189
|
+
],
|
|
4190
|
+
[
|
|
4191
|
+
97.5,
|
|
4192
|
+
166,
|
|
4193
|
+
2.79,
|
|
4194
|
+
2.99,
|
|
4195
|
+
64
|
|
4196
|
+
],
|
|
4197
|
+
[
|
|
4198
|
+
128,
|
|
4199
|
+
177.5,
|
|
4200
|
+
3.41,
|
|
4201
|
+
3.68,
|
|
4202
|
+
65
|
|
4203
|
+
],
|
|
4204
|
+
[
|
|
4205
|
+
-50,
|
|
4206
|
+
330,
|
|
4207
|
+
3.6,
|
|
4208
|
+
2.9,
|
|
4209
|
+
100
|
|
4210
|
+
],
|
|
4211
|
+
[
|
|
4212
|
+
-64,
|
|
4213
|
+
336,
|
|
4214
|
+
2.4,
|
|
4215
|
+
1.9,
|
|
4216
|
+
101
|
|
4217
|
+
],
|
|
4218
|
+
[
|
|
4219
|
+
-14,
|
|
4220
|
+
204,
|
|
4221
|
+
2.4,
|
|
4222
|
+
1.9,
|
|
4223
|
+
110
|
|
4224
|
+
],
|
|
4225
|
+
[
|
|
4226
|
+
176,
|
|
4227
|
+
212,
|
|
4228
|
+
2.8,
|
|
4229
|
+
2.3,
|
|
4230
|
+
111
|
|
4231
|
+
]
|
|
4232
|
+
].map(([x, z, R, H, s]) => crag(x, z, R, H, s));
|
|
4133
4233
|
var ghosts = (l) => l.flatMap((c) => c.parts).map(([x0, y0, z0, x1, y1, z1]) => ({
|
|
4134
4234
|
...box(x0, y0, z0, x1, y1, z1, STONE),
|
|
4135
4235
|
ghost: true
|
|
@@ -4199,12 +4299,7 @@ var lump = (x, z, s, h) => ({
|
|
|
4199
4299
|
ghost: true
|
|
4200
4300
|
});
|
|
4201
4301
|
var LAYOUT = {
|
|
4202
|
-
/** Outside the arena: the
|
|
4203
|
-
rocks: [...FIELD, ...FIELD.map(([x, z, r]) => [
|
|
4204
|
-
x,
|
|
4205
|
-
280 - z,
|
|
4206
|
-
r
|
|
4207
|
-
])],
|
|
4302
|
+
/** Outside the arena: the dishes, the ramps (the middle of the lip and the unit way up it), the wreck. */
|
|
4208
4303
|
dishes: [...DISHES, ...DISHES.map(([x, z]) => [x, 280 - z])],
|
|
4209
4304
|
ramps: RAMPS.flatMap(([x, z, ax, az]) => (z ? [1, -1] : [1]).map((m) => [
|
|
4210
4305
|
x + 16 * ax,
|
|
@@ -4224,7 +4319,6 @@ var LAYOUT = {
|
|
|
4224
4319
|
b
|
|
4225
4320
|
]).reverse()
|
|
4226
4321
|
}]),
|
|
4227
|
-
/** Red's boulders along its walls and the field's stones; blue's are their mirrors, drawn by the scenery's flip. */
|
|
4228
4322
|
/** The craters of the relief, both sides: x, z, radius, depth as a share of it. */
|
|
4229
4323
|
bowls: BOWLS.flatMap(([x, z, r, k = .17]) => (z ? [1, -1] : [1]).map((m) => [
|
|
4230
4324
|
x,
|
|
@@ -4232,10 +4326,10 @@ var LAYOUT = {
|
|
|
4232
4326
|
r,
|
|
4233
4327
|
k
|
|
4234
4328
|
])),
|
|
4235
|
-
boulders:
|
|
4236
|
-
/** Red's rocks, in the arena and in the boulder field: blue's are their mirrors. */
|
|
4329
|
+
/** Red's boulders, in the field and outside: blue's are their mirrors. */
|
|
4237
4330
|
crags: CRAGS,
|
|
4238
|
-
|
|
4331
|
+
/** Where the boulders stood, red's side (x, z, radius): pebbles lie thickest there. */
|
|
4332
|
+
sites: SITES,
|
|
4239
4333
|
pillars: PILLARS,
|
|
4240
4334
|
domes: [DOME, [DOME[0], 280 - DOME[1]]],
|
|
4241
4335
|
pads: [PAD, [
|
|
@@ -4320,8 +4414,7 @@ var half = [
|
|
|
4320
4414
|
.08
|
|
4321
4415
|
]),
|
|
4322
4416
|
...PITS.filter((p) => p.z !== 140).flatMap(pit),
|
|
4323
|
-
...ghosts(CRAGS
|
|
4324
|
-
...ghosts(CRAGS.field),
|
|
4417
|
+
...ghosts(CRAGS),
|
|
4325
4418
|
...DISHES.map(([x, z]) => lump(x, z, .4, 6))
|
|
4326
4419
|
];
|
|
4327
4420
|
/** What stands on the centre line, symmetric as written: the bridge, the stones, the rille's plugs and the wreck. */
|
|
@@ -4,6 +4,19 @@ import type { WorldDef } from '../shared/world';
|
|
|
4
4
|
* of the bound) and, at most 360 m more from a spot on the bound, inside the far clip (FAR).
|
|
5
5
|
*/
|
|
6
6
|
export declare const SKY = 800;
|
|
7
|
+
/** The pebbles' three sizes, metres across: the largest is under a step's height, a body walks through any of them. */
|
|
8
|
+
export declare const PEBBLES: number[];
|
|
9
|
+
/**
|
|
10
|
+
* Where the pebbles lie, red's half then blue's, its mirror: x, the ground's height, z, the
|
|
11
|
+
* size (an index into PEBBLES) and a seed. No rock stands on the moon's floor any more: where the
|
|
12
|
+
* boulders stood (LAYOUT.sites) pebbles lie thickest, a cluster each; more on the crest of each
|
|
13
|
+
* crater and thrown out round it, along the rille's rim, in loose trails across the floor and in
|
|
14
|
+
* patches where a noise is high. None within 2.5 m of a base, a rover's place, a landing pad, a
|
|
15
|
+
* pack or a spawn (FLATS), none on the strips of the measured jumps (STRIPS), none in a pit's
|
|
16
|
+
* square nor where there is no ground. Six in ten are of the smallest size, a third of the
|
|
17
|
+
* middle one, one in twenty of the largest.
|
|
18
|
+
*/
|
|
19
|
+
export declare const strewn: (def: WorldDef) => number[][];
|
|
7
20
|
/**
|
|
8
21
|
* The ranges on the horizon, all round, past the crater wall: radius from the middle of the play
|
|
9
22
|
* area, height of its highest peak, rows of points from foot to crest, its grey in the sun and in
|
|
@@ -33,6 +33,14 @@ export declare const MOUND: number, RISE: number;
|
|
|
33
33
|
* starts 12 m behind them.
|
|
34
34
|
*/
|
|
35
35
|
export declare const FLATS: number[][];
|
|
36
|
+
/**
|
|
37
|
+
* Where the small relief stays out, besides FLATS: the strips whose jumps are measured, x0, z0, x1,
|
|
38
|
+
* z1 with z from the centre line. The west long jump's take-off and landing, the bridge's ends,
|
|
39
|
+
* the east stones' approaches, and the two mounds a rover flies the rille from with their flanks
|
|
40
|
+
* (their run-ups are in FLATS). All to 16 m from the centre line, where the field's mounds begin
|
|
41
|
+
* at the nearest: what was level there stays level.
|
|
42
|
+
*/
|
|
43
|
+
export declare const STRIPS: number[][];
|
|
36
44
|
type V3 = [number, number, number];
|
|
37
45
|
/** How high a rock's middle is over the ground: three tenths of its height, and 0.6 m or half its height if less. Its widest is there, its flank steep down to the ground: a body is stopped at its foot. */
|
|
38
46
|
export declare const rockMid: (H: number) => number;
|
|
@@ -50,8 +58,7 @@ export declare const rockOf: (s: number, R: number, H: number) => {
|
|
|
50
58
|
/** A pit: PIT_R in radius, cut in a square of half side PIT_S of its crater's terrace, its floor at PIT_FLOOR, 7 m over the kill floor; a flight of PIT_STEPS steps up its east wall. */
|
|
51
59
|
export declare const PIT_R: number, PIT_S: number, PIT_FLOOR: number, PIT_STEPS: number;
|
|
52
60
|
export declare const LAYOUT: {
|
|
53
|
-
/** Outside the arena: the
|
|
54
|
-
rocks: number[][];
|
|
61
|
+
/** Outside the arena: the dishes, the ramps (the middle of the lip and the unit way up it), the wreck. */
|
|
55
62
|
dishes: number[][];
|
|
56
63
|
ramps: number[][];
|
|
57
64
|
wreck: number[];
|
|
@@ -62,28 +69,18 @@ export declare const LAYOUT: {
|
|
|
62
69
|
level: number;
|
|
63
70
|
rows: number[][];
|
|
64
71
|
}[];
|
|
65
|
-
/** Red's boulders along its walls and the field's stones; blue's are their mirrors, drawn by the scenery's flip. */
|
|
66
72
|
/** The craters of the relief, both sides: x, z, radius, depth as a share of it. */
|
|
67
73
|
bowls: number[][];
|
|
68
|
-
boulders:
|
|
69
|
-
/** Red's rocks, in the arena and in the boulder field: blue's are their mirrors. */
|
|
74
|
+
/** Red's boulders, in the field and outside: blue's are their mirrors. */
|
|
70
75
|
crags: {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
at: number[];
|
|
80
|
-
R: number;
|
|
81
|
-
H: number;
|
|
82
|
-
s: number;
|
|
83
|
-
parts: number[][];
|
|
84
|
-
}[];
|
|
85
|
-
};
|
|
86
|
-
stones: number[][];
|
|
76
|
+
at: number[];
|
|
77
|
+
R: number;
|
|
78
|
+
H: number;
|
|
79
|
+
s: number;
|
|
80
|
+
parts: number[][];
|
|
81
|
+
}[];
|
|
82
|
+
/** Where the boulders stood, red's side (x, z, radius): pebbles lie thickest there. */
|
|
83
|
+
sites: number[][];
|
|
87
84
|
pillars: number[][];
|
|
88
85
|
domes: number[][];
|
|
89
86
|
pads: number[][];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@korial29/tiny-fps",
|
|
3
3
|
"description": "Tiny multiplayer first-person rooftop game for the browser: raw WebGL, zero runtime dependencies, WebSocket or same-browser multi-tab play.",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.123.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|