@korial29/tiny-fps 1.7.0 → 1.9.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/assets/{room-RIvmKR68.js → room-DNdwMAUE.js} +31 -15
- package/dist/cast-art-DbwsToaQ.js +1 -0
- package/dist/index.js +7 -7
- package/dist/landfall-CSZGx2iA.js +21 -0
- package/dist/local.js +1 -1
- package/dist/paint-DipbUTzI.js +4 -0
- package/dist/room.js +1 -1
- package/dist/server.js +1 -1
- package/dist/types/client/armor/clip.d.ts +22 -0
- package/dist/types/client/armor/cooking.d.ts +14 -0
- package/dist/types/client/armor/details.d.ts +65 -0
- package/dist/types/client/armor/fit.d.ts +8 -0
- package/dist/types/client/armor/regions.d.ts +304 -0
- package/dist/types/client/armor/scratches.d.ts +4 -0
- package/dist/types/client/armor/shell.d.ts +46 -0
- package/dist/types/client/armor/types.d.ts +37 -0
- package/dist/types/client/armor/wear.d.ts +22 -0
- package/dist/types/client/armor.d.ts +9 -393
- package/dist/types/client/body/constants.d.ts +35 -0
- package/dist/types/client/body/create.d.ts +3 -0
- package/dist/types/client/body/fingers.d.ts +112 -0
- package/dist/types/client/body/glove.d.ts +27 -0
- package/dist/types/client/body/hands.d.ts +28 -0
- package/dist/types/client/body/hunter.d.ts +26 -0
- package/dist/types/client/body/motion.d.ts +42 -0
- package/dist/types/client/body/reach.d.ts +65 -0
- package/dist/types/client/body/types.d.ts +39 -0
- package/dist/types/client/body/wield.d.ts +30 -0
- package/dist/types/client/body.d.ts +10 -207
- package/dist/types/client/cast-art.d.ts +2 -0
- package/dist/types/client/gait/constants.d.ts +34 -0
- package/dist/types/client/gait/create.d.ts +3 -0
- package/dist/types/client/gait/fists.d.ts +55 -0
- package/dist/types/client/gait/maths.d.ts +38 -0
- package/dist/types/client/gait/moves.d.ts +129 -0
- package/dist/types/client/gait/types.d.ts +59 -0
- package/dist/types/client/gait.d.ts +6 -146
- package/dist/types/client/gun/ammo.d.ts +21 -0
- package/dist/types/client/gun/display.d.ts +32 -0
- package/dist/types/client/gun/held.d.ts +75 -0
- package/dist/types/client/gun/kinds.d.ts +12 -0
- package/dist/types/client/gun/loft.d.ts +16 -0
- package/dist/types/client/gun/paint.d.ts +30 -0
- package/dist/types/client/gun/railgun.d.ts +34 -0
- package/dist/types/client/gun/reload.d.ts +112 -0
- package/dist/types/client/gun/rifle.d.ts +54 -0
- package/dist/types/client/gun/sidearm.d.ts +32 -0
- package/dist/types/client/gun.d.ts +10 -308
- package/dist/types/client/hulk/cabin.d.ts +36 -0
- package/dist/types/client/hulk/common.d.ts +55 -0
- package/dist/types/client/hulk/debris.d.ts +16 -0
- package/dist/types/client/hulk/hull.d.ts +81 -0
- package/dist/types/client/hulk/inside.d.ts +5 -0
- package/dist/types/client/hulk/parts.d.ts +16 -0
- package/dist/types/client/hulk/types.d.ts +7 -0
- package/dist/types/client/hulk/wings.d.ts +4 -0
- package/dist/types/client/hulk.d.ts +8 -18
- package/dist/types/client/hunter/animation.d.ts +113 -0
- package/dist/types/client/hunter/constants.d.ts +53 -0
- package/dist/types/client/hunter/disc.d.ts +33 -0
- package/dist/types/client/hunter/harpoon.d.ts +68 -0
- package/dist/types/client/hunter/marine.d.ts +14 -0
- package/dist/types/client/hunter/model.d.ts +4 -0
- package/dist/types/client/hunter/rest.d.ts +7 -0
- package/dist/types/client/hunter.d.ts +7 -164
- package/dist/types/client/render/camera.d.ts +58 -0
- package/dist/types/client/render/constants.d.ts +63 -0
- package/dist/types/client/render/scene.d.ts +58 -0
- package/dist/types/client/render/shader.d.ts +62 -0
- package/dist/types/client/render/shots.d.ts +61 -0
- package/dist/types/client/render/types.d.ts +74 -0
- package/dist/types/client/render.d.ts +9 -277
- package/dist/types/client/sfx/air.d.ts +46 -0
- package/dist/types/client/sfx/anthem.d.ts +27 -0
- package/dist/types/client/sfx/layers.d.ts +6 -0
- package/dist/types/client/sfx/music.d.ts +96 -0
- package/dist/types/client/sfx/render.d.ts +10 -0
- package/dist/types/client/sfx/sounds.d.ts +180 -0
- package/dist/types/client/sfx/synth.d.ts +24 -0
- package/dist/types/client/sfx/voices.d.ts +59 -0
- package/dist/types/client/sfx.d.ts +8 -325
- package/dist/types/client/skin/head.d.ts +120 -0
- package/dist/types/client/skin/lofts.d.ts +145 -0
- package/dist/types/client/skin/pose.d.ts +102 -0
- package/dist/types/client/skin/shape.d.ts +2 -0
- package/dist/types/client/skin.d.ts +4 -179
- package/dist/types/client/soldier/animate.d.ts +12 -0
- package/dist/types/client/soldier/carry.d.ts +28 -0
- package/dist/types/client/soldier/common.d.ts +8 -0
- package/dist/types/client/soldier/draw.d.ts +12 -0
- package/dist/types/client/soldier/grasp.d.ts +28 -0
- package/dist/types/client/soldier/hunter.d.ts +38 -0
- package/dist/types/client/soldier/runner.d.ts +58 -0
- package/dist/types/client/soldier/stance.d.ts +20 -0
- package/dist/types/client/soldier/types.d.ts +107 -0
- package/dist/types/client/soldier.d.ts +9 -236
- package/dist/types/client/xeno/back.d.ts +113 -0
- package/dist/types/client/xeno/body.d.ts +63 -0
- package/dist/types/client/xeno/common.d.ts +28 -0
- package/dist/types/client/xeno/head.d.ts +109 -0
- package/dist/types/client/xeno/limbs.d.ts +62 -0
- package/dist/types/client/xeno/mouth.d.ts +23 -0
- package/dist/types/client/xeno/parts.d.ts +40 -0
- package/dist/types/client/xeno/tail.d.ts +107 -0
- package/dist/types/client/xeno.d.ts +8 -246
- package/package.json +1 -1
- package/dist/landfall-n5tpoRmi.js +0 -21
- package/dist/paint-BBkY8KO0.js +0 -4
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Spot } from '../helmet';
|
|
2
|
+
import type { Vec3 } from '../mesh';
|
|
3
|
+
import type { Quat } from '../rig';
|
|
4
|
+
/**
|
|
5
|
+
* Its chitin: a near black with a cold sheen, one colour from the skull to the tail: a lighter head
|
|
6
|
+
* drew a collar's line round the neck.
|
|
7
|
+
*/
|
|
8
|
+
export declare const CHITIN_X: number[];
|
|
9
|
+
/** Sides round a piece at each level of detail (far, near, the own body, close), by how fine it is. */
|
|
10
|
+
export declare const SIDES: number[][];
|
|
11
|
+
/** A point of a piece in the frame (at, q) of its joint. */
|
|
12
|
+
export declare const on: (at: Vec3, q: Quat, v: Vec3) => Vec3;
|
|
13
|
+
/** A ring of `n` spots round `c` square to the unit `tan`, `side` steadying it, of radius `r`. */
|
|
14
|
+
export declare const ring: (c: Vec3, tan: Vec3, side: Vec3, r: number, n: number) => Spot[];
|
|
15
|
+
/** A solved skeleton (solve() in rig.ts): each joint's place and turn in the world. */
|
|
16
|
+
export interface Solved {
|
|
17
|
+
pos: Vec3[];
|
|
18
|
+
rot: Quat[];
|
|
19
|
+
}
|
|
20
|
+
/** A point of the column: where, out of the back (a unit vector), and how thick. */
|
|
21
|
+
export type Bone = [p: Vec3, up: Vec3, r: number];
|
|
22
|
+
export declare const mix3: (a: Vec3, b: Vec3, k: number) => Vec3;
|
|
23
|
+
export declare const far: (a: Vec3, b: Vec3) => number;
|
|
24
|
+
/**
|
|
25
|
+
* A smooth curve through `pts` (Catmull-Rom), three more points between each two; `mid(i, u)` is
|
|
26
|
+
* what else a point carries, `u` of the way from point i to the next.
|
|
27
|
+
*/
|
|
28
|
+
export declare const smooth: <T>(pts: Vec3[], mid: (i: number, u: number) => T) => [Vec3, T][];
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import type { Vec3 } from '../mesh';
|
|
2
|
+
import type { Quat } from '../rig';
|
|
3
|
+
import type { Out } from '../verts';
|
|
4
|
+
/** A value on a curve through [y, value] points, by y, highest first. */
|
|
5
|
+
export declare const curve: (pts: number[][], y: number) => number;
|
|
6
|
+
export declare const DEPTH: number[][];
|
|
7
|
+
/** How deep the throat is behind the mouth, by height, as DEPTH: under the upper jaw's edge (GUM). */
|
|
8
|
+
export declare const THROAT: number[][];
|
|
9
|
+
/**
|
|
10
|
+
* Its carapace (the user, 2026-11-24: no eyes; the whole top of the head from their line up smooth,
|
|
11
|
+
* black and glossy): its colour, the height on the face it ends at, and how far its edge stands
|
|
12
|
+
* out of the face under it, metres.
|
|
13
|
+
*/
|
|
14
|
+
export declare const SHELL: number[];
|
|
15
|
+
export declare const LIP = 0.004;
|
|
16
|
+
/**
|
|
17
|
+
* The carapace's edge (the user, 2026-11-24: the top of the skull closes over the lower part along
|
|
18
|
+
* a curve): on the face low over the upper jaw across the mouth (EDGE[0]), rising beside it to
|
|
19
|
+
* EDGE[1] at the face's rim; then along the dome, as a share of each section's half height from
|
|
20
|
+
* its middle, on up to EDGE[2] over RISE metres, and level from there. A rolled rim runs along it
|
|
21
|
+
* (rim()), ROLL thick.
|
|
22
|
+
*/
|
|
23
|
+
export declare const EDGE: number[];
|
|
24
|
+
export declare const RISE: number, ROLL: number;
|
|
25
|
+
/** The height of the upper jaw's edge on the face, the throat under it (its jaws, further down). */
|
|
26
|
+
export declare const GUM = -0.026;
|
|
27
|
+
/** Its head's chitin: the dome's (the skin's TRIM, soldier.ts) and its face's, the body's own. */
|
|
28
|
+
export declare const HEAD: number[];
|
|
29
|
+
export declare const DARK: number[], TEETH: number[];
|
|
30
|
+
/**
|
|
31
|
+
* The head's front (the user, 2026-11-15: one smooth block with the back): an ellipsoid round the
|
|
32
|
+
* middle of the head, its centre's height and its half width, height and depth. Its rim is the
|
|
33
|
+
* dome's front ring (CREST in skin.ts), so the face, as wide as it at every height, meets the dome
|
|
34
|
+
* with no seam; over the orbits the face is the ellipsoid itself, a smooth forehead.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* How far the head is carried over its joint (the user, 2026-11-15: a neck that shows): the face
|
|
38
|
+
* here, the dome in skin.ts (PROFILE), the neck's skin run up to it.
|
|
39
|
+
*/
|
|
40
|
+
export declare const HEAD_UP = 0.065;
|
|
41
|
+
/**
|
|
42
|
+
* The vertices written to `o` from `from` on, made HEAD_K larger about `at` and HEAD_X narrower
|
|
43
|
+
* across the head (`q` its turn); the normals squeezed back.
|
|
44
|
+
*/
|
|
45
|
+
export declare const grow: (o: Out, from: number, at: Vec3, q: Quat) => void;
|
|
46
|
+
export declare const EY: number, EA: number, EB: number, EC: number;
|
|
47
|
+
/** How far out of the head's section (x, y) is, 1 on its rim. */
|
|
48
|
+
export declare const reach: (x: number, y: number) => number;
|
|
49
|
+
/** The point at `a` radians from the top round a section of half width 1 and half height 1, and the way out of it there (to scale by the other half size each). */
|
|
50
|
+
export declare const round: (a: number) => number[];
|
|
51
|
+
/** How much of the forehead's sphere the face is at height y: none under the orbits, all over them. */
|
|
52
|
+
export declare const brow: (y: number) => number;
|
|
53
|
+
/** The top of the face, and its half width at height y. */
|
|
54
|
+
export declare const TOP: number;
|
|
55
|
+
/** The bottom of the chin (the user, 2026-11-15: a short one). */
|
|
56
|
+
export declare const CHIN: number;
|
|
57
|
+
export declare const widthOf: (y: number) => number;
|
|
58
|
+
/** [0, 1] onto itself, the steps packed where `density` (of the place, 0 to 1) is high. */
|
|
59
|
+
export declare const warp: (density: (t: number) => number) => (v: number) => number;
|
|
60
|
+
/**
|
|
61
|
+
* The grid's rows and columns, near and close: the rows packed toward the top, the columns a
|
|
62
|
+
* little off the middle each side.
|
|
63
|
+
*/
|
|
64
|
+
export declare const ROWS: ((v: number) => number)[], COLS: ((v: number) => number)[];
|
|
65
|
+
/** The height of the grid's row `v` (0 the top, 1 the chin), on the close grid if `fine`. */
|
|
66
|
+
export declare const rowY: (v: number, fine: boolean) => number;
|
|
67
|
+
/** The grid's column `u` (-1 to 1, evenly spaced) moved to pack over the orbits, on the close grid if `fine`. */
|
|
68
|
+
export declare const colU: (u: number, fine: boolean) => number;
|
|
69
|
+
/** The face's surface at (x, y): an ellipse's front under the carapace's ellipsoid, the cheekbones out, the throat under the upper jaw. */
|
|
70
|
+
export declare const faceZ: (x: number, y: number) => number;
|
|
71
|
+
/** How much of the dome's rim the face takes at (x, y): none inside, all at its edge. */
|
|
72
|
+
export declare const rimOf: (x: number, y: number) => number;
|
|
73
|
+
/**
|
|
74
|
+
* The face as skull() draws it at (x, y): faceZ, its rim tucked a hair under the dome's front ring.
|
|
75
|
+
* What lies on the face follows this.
|
|
76
|
+
*/
|
|
77
|
+
export declare const faceAt: (x: number, y: number) => Vec3;
|
|
78
|
+
/**
|
|
79
|
+
* Its jaws (the user, 2026-11-24: the gaping jaws of the reference picture, no tongue). The upper
|
|
80
|
+
* one is the face's edge at GUM, the throat falling back under it. The lower one is a piece of its
|
|
81
|
+
* own (jaw()), a U hung open GAPE radians from HINGE (the right one) each side: its rami run
|
|
82
|
+
* forward to an arc ARC[0] wide and ARC[1] deep round the point ARC[2] ahead, in a plane through
|
|
83
|
+
* the hinges.
|
|
84
|
+
*/
|
|
85
|
+
export declare const HINGE: Vec3;
|
|
86
|
+
export declare const GAPE = 0.42;
|
|
87
|
+
export declare const ARC: number[];
|
|
88
|
+
/** The height of the mandible's underside, under the chin and at the hinges. */
|
|
89
|
+
export declare const FLOOR: number[];
|
|
90
|
+
/** The jaw's plane: the way its teeth point, and its height `z` ahead. */
|
|
91
|
+
export declare const JAW_UP: Vec3;
|
|
92
|
+
export declare const jawY: (z: number) => number;
|
|
93
|
+
/** The middle of the right ramus `t` of the way from the hinge to the arc, and of the arc at `a` radians from its front (positive to the right). */
|
|
94
|
+
export declare const ramusAt: (t: number, s?: number) => Vec3;
|
|
95
|
+
export declare const arcAt: (a: number) => Vec3;
|
|
96
|
+
/** The mandible's half height where it is `x` out from the middle: deepest at the chin. */
|
|
97
|
+
export declare const jawH: (x: number) => number;
|
|
98
|
+
/**
|
|
99
|
+
* Its face, eyeless: over EDGE the front of its glossy carapace, one smooth ellipsoid with the
|
|
100
|
+
* dome; under it its chitin, the cheekbones, no nose, the mouth wide open, an opening whose edge
|
|
101
|
+
* the lips hide, dark inside, with steel teeth, the fangs longest. A grid over the face, finer the
|
|
102
|
+
* closer.
|
|
103
|
+
*/
|
|
104
|
+
export declare const skull: (out: Out, head: Vec3, q: Quat, lod: number) => void;
|
|
105
|
+
/**
|
|
106
|
+
* Its lower jaw (HINGE, ARC), on the head joint: a bone taller than wide round the U, deepest at
|
|
107
|
+
* the chin, its ends buried in the throat behind the cheeks.
|
|
108
|
+
*/
|
|
109
|
+
export declare const jaw: (out: Out, head: Vec3, q: Quat, lod: number) => void;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { Vec3 } from '../mesh';
|
|
2
|
+
import type { Quat } from '../rig';
|
|
3
|
+
import type { Out } from '../verts';
|
|
4
|
+
import { strand } from './body';
|
|
5
|
+
/** Where the metatarsal (the foot) ends, from the ankle, in the foot joint's frame: longer than the rig's foot. */
|
|
6
|
+
export declare const FOOT_TIP: Vec3;
|
|
7
|
+
/** The three front toes: how far out to the side each goes (in widths of TOE_W) and its length. */
|
|
8
|
+
export declare const TOES: number[][];
|
|
9
|
+
export declare const TOE_W = 0.027;
|
|
10
|
+
/**
|
|
11
|
+
* Its foot on a foot joint (the user, 2026-11-15: an arched sole, tendons and toes): a round ankle
|
|
12
|
+
* over the joint, which the shin's end sinks into, then the bone bowing up along its top into an
|
|
13
|
+
* arch, a pad under the heel and one under the ball at its end (FOOT_TIP); three tendons stand out
|
|
14
|
+
* over the instep from the ankle to the toes, where toes() carries them on to the claws. The pose
|
|
15
|
+
* stands it near upright (prowl() in soldier.ts): a third segment to the leg.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* strand(), its curve rounded (the user, 2026-11-17: the feet less angular): close, three more
|
|
19
|
+
* rings between each two points on a smooth curve through them (smooth()), their radii between.
|
|
20
|
+
*/
|
|
21
|
+
export declare const rounded: (lod: number) => typeof strand;
|
|
22
|
+
export declare const metatarsal: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Its toes at the end of the foot (FOOT_TIP), level: three long digits splayed forward and a fourth,
|
|
25
|
+
* short, behind. Each is two phalanges with a knuckle standing up between them, its tendon along
|
|
26
|
+
* its top, and at its end a big hooked claw of bone curving down past the toe.
|
|
27
|
+
*/
|
|
28
|
+
export declare const toes: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
29
|
+
/** Its tendons on a shin joint: the heel's cord down the back of the shin, and one down each side of its front. */
|
|
30
|
+
export declare const sinews: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Its collarbones on the chest joint (the user, 2026-11-15: standing out, an exoskeleton), in the
|
|
33
|
+
* ribs' chitin: from the notch over the breastbone forward and out, then back to a knob over each
|
|
34
|
+
* shoulder.
|
|
35
|
+
*/
|
|
36
|
+
export declare const clavicles: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Curved horns out of its back (the user, 2026-11-15): a pair on a joint, each from beside the spine
|
|
39
|
+
* out of the back near square to it and well out to the side, clear of the head, curling up a little, `len` long and `r` thick at its root, at `base` (the right
|
|
40
|
+
* one) in the joint's frame.
|
|
41
|
+
*/
|
|
42
|
+
export declare const horns: (out: Out, at: Vec3, q: Quat, lod: number, base: Vec3, len: number, r: number) => void;
|
|
43
|
+
/** The three pairs of horns: the joint, the root, the length and thickness, small low, large high. */
|
|
44
|
+
export declare const HORNS: [number, Vec3, number, number][];
|
|
45
|
+
/** A spur of bone on a joint: from `base` along `dir` (in its frame), `len` long, `r` thick at its root. */
|
|
46
|
+
export declare const spur: (out: Out, at: Vec3, q: Quat, base: Vec3, dir: Vec3, len: number, r: number, n: number, hook?: number) => void;
|
|
47
|
+
/** Its spurs: one out of the back of each elbow (a forearm joint), one out of the back of each ankle (a shin joint). */
|
|
48
|
+
export declare const elbow: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
49
|
+
/**
|
|
50
|
+
* A forearm's window (the user's picture, 2026-11-17: only on the forearm's visible face), on the
|
|
51
|
+
* forearm joint of side `s` (1 the right): one down its outside, elbow to wrist, 26 cm, a little
|
|
52
|
+
* sunk in the skin's rough shape so no gap shows (a little clipping is fine).
|
|
53
|
+
*/
|
|
54
|
+
export declare const forearm: (out: Out, at: Vec3, q: Quat, lod: number, s: number) => void;
|
|
55
|
+
export declare const heel: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
56
|
+
/**
|
|
57
|
+
* The disc at the top of its arm (the user, 2026-11-16: where the shoulder ends and the arm
|
|
58
|
+
* begins), on the arm's swing (its joint without its twist, as the skin's top is), `s` 1 the right
|
|
59
|
+
* arm: a full disc slanting through the shoulder, thin with a rounded rim and low domed faces,
|
|
60
|
+
* its rim fading into the skin toward the armpit.
|
|
61
|
+
*/
|
|
62
|
+
export declare const cuff: (out: Out, at: Vec3, q: Quat, lod: number, s: number) => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Vec3 } from '../mesh';
|
|
2
|
+
import type { Quat } from '../rig';
|
|
3
|
+
import type { Out } from '../verts';
|
|
4
|
+
/**
|
|
5
|
+
* The chitin under its carapace (the user, 2026-11-24: glossy black from the eyes' line up), on the
|
|
6
|
+
* head joint: the underside of the dome, the arc of its sections under the carapace's edge (edgeAt()) set BELLY metres out of it, its two edges turned in under the
|
|
7
|
+
* carapace. At the face's edge it is no further out than the face's rim, which covers it.
|
|
8
|
+
*/
|
|
9
|
+
export declare const BELLY = 0.003;
|
|
10
|
+
/** The angle of the carapace's edge round the dome's section `z` behind the face, from its top (EDGE). */
|
|
11
|
+
export declare const edgeAt: (z: number) => number;
|
|
12
|
+
export declare const belly: (out: Out, head: Vec3, q: Quat, lod: number) => void;
|
|
13
|
+
/**
|
|
14
|
+
* The fine parts of its face, too thin for a shadow (soldier.ts keeps them out of the depth passes):
|
|
15
|
+
* its steel teeth and the cords of sinew beside its mouth. Not far.
|
|
16
|
+
*/
|
|
17
|
+
export declare const teeth: (out: Out, head: Vec3, q: Quat, lod: number) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Striated tubes blended into the sides of its dome (the user, 2026-11-16), on the head joint: two
|
|
20
|
+
* each side running back from behind the face along the banana's lower flank, half sunk in it and
|
|
21
|
+
* sinking wholly at both ends.
|
|
22
|
+
*/
|
|
23
|
+
export declare const hoses: (out: Out, head: Vec3, q: Quat, lod: number) => void;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Vec3 } from '../mesh';
|
|
2
|
+
import type { Quat } from '../rig';
|
|
3
|
+
import type { Out } from '../verts';
|
|
4
|
+
/** A rigid piece made at the origin of its joint's frame, then only placed (store.ts). */
|
|
5
|
+
export type Make = (o: Out, at: Vec3, q: Quat) => void;
|
|
6
|
+
/**
|
|
7
|
+
* A rigid piece of the xenomorph at a level of detail: its key in the store (all its vertices
|
|
8
|
+
* depend on), how it is made, and whether it is `thin`, too fine for a shadow: left out of the
|
|
9
|
+
* depth passes.
|
|
10
|
+
*/
|
|
11
|
+
export interface Part {
|
|
12
|
+
key: string;
|
|
13
|
+
make: Make;
|
|
14
|
+
thin?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Its pieces by the joint they go on (partsOf()), those on one joint merged: one draw each a pass. */
|
|
17
|
+
export declare const PART: {
|
|
18
|
+
SHIN: number;
|
|
19
|
+
FOOT: number;
|
|
20
|
+
TOES: number;
|
|
21
|
+
CHEST: number;
|
|
22
|
+
SPINE: number;
|
|
23
|
+
ELBOW: number;
|
|
24
|
+
CUFF_L: number;
|
|
25
|
+
CUFF_R: number;
|
|
26
|
+
HEAD: number;
|
|
27
|
+
FINE: number;
|
|
28
|
+
THIGH_L: number;
|
|
29
|
+
THIGH_R: number;
|
|
30
|
+
HIPS: number;
|
|
31
|
+
FOREARM_L: number;
|
|
32
|
+
FOREARM_R: number;
|
|
33
|
+
};
|
|
34
|
+
export declare const parts: Part[][];
|
|
35
|
+
/** The horns on joint `j` (HORNS). */
|
|
36
|
+
export declare const hornsOn: (o: Out, at: Vec3, q: Quat, lod: number, j: number) => void;
|
|
37
|
+
/** Its chitin's vertices written to `o` from `from` on (the body's colour at -1) put on CHITIN. */
|
|
38
|
+
export declare const shell: (o: Out, from: number) => void;
|
|
39
|
+
/** The xenomorph's rigid pieces at `lod`, in PART's order; render.ts makes them all at the map's load. */
|
|
40
|
+
export declare const partsOf: (lod: number) => Part[];
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type { PlayerState } from '../../shared/types';
|
|
2
|
+
import type { Vec3 } from '../mesh';
|
|
3
|
+
import type { Floats, Out } from '../verts';
|
|
4
|
+
import type { Solved } from './common';
|
|
5
|
+
/** How far a full charge bends the tail to one side at its root and the other at its tip: an S, radians. */
|
|
6
|
+
export declare const COIL = 0.8;
|
|
7
|
+
/** How far the tail turns back toward the level when the body is on all fours (fours.ts), radians. */
|
|
8
|
+
export declare const LAID = 1.4;
|
|
9
|
+
/** Metres: the tail's length, its root's radius and its tip's, the stinger's length, width and thickness. */
|
|
10
|
+
export declare const TAIL: {
|
|
11
|
+
len: number;
|
|
12
|
+
root: number;
|
|
13
|
+
tip: number;
|
|
14
|
+
sting: number;
|
|
15
|
+
wide: number;
|
|
16
|
+
thin: number;
|
|
17
|
+
};
|
|
18
|
+
/** How far the tip of the tail at rest curls up and forward: a hook (the user, 2026-11-16). */
|
|
19
|
+
export declare const HOOK = 6;
|
|
20
|
+
/**
|
|
21
|
+
* A pose of the tail, as bonesOf() takes it: its arch over the back (0 behind, 1 over the head and
|
|
22
|
+
* forward down into the view), its turn about the pelvis' up (radians, to its left: through its
|
|
23
|
+
* right side, a tail pointing back turns forward), its lean to the right, its reach (as a share of
|
|
24
|
+
* its length, a whip stretched), how much of the hook at its tip it keeps, how far its root
|
|
25
|
+
* rises, how far it coils in an S, how strongly its stinger follows the aim, and how far its tip
|
|
26
|
+
* is drawn onto the foe ahead of the eyes (tail(), the user 2026-11-23: in the own view the strike
|
|
27
|
+
* lands on the crosshair).
|
|
28
|
+
*/
|
|
29
|
+
export type Lash = readonly [
|
|
30
|
+
sting: number,
|
|
31
|
+
side: number,
|
|
32
|
+
lean: number,
|
|
33
|
+
reach: number,
|
|
34
|
+
hook: number,
|
|
35
|
+
rise: number,
|
|
36
|
+
coil?: number,
|
|
37
|
+
aim?: number,
|
|
38
|
+
pull?: number
|
|
39
|
+
];
|
|
40
|
+
/** The share of its lean a charge takes off the tail, to raise it in the own view (Lash's `lean`). */
|
|
41
|
+
export declare const CHARGE_LEAN = 0.4;
|
|
42
|
+
/** At rest: behind, hooked. */
|
|
43
|
+
export declare const HOOKED: Lash;
|
|
44
|
+
/**
|
|
45
|
+
* Where its tail is through a strike (TAILS, by the cut): it goes from HOOKED to the strike's poise
|
|
46
|
+
* in the first third of the wind-up (or most of the way to the strike for a special), so it answers
|
|
47
|
+
* the click at once (the user, 2026-11-16), is driven to its end at the strike, eased in, then
|
|
48
|
+
* comes back. A charge holds it at that poise, drawn in and coiled in an S over a tap of
|
|
49
|
+
* charge, then still but for its breath with the clock `t` (the user, 2026-11-16); let go, it
|
|
50
|
+
* strikes from there. The SPIN turns the tail low once round the body.
|
|
51
|
+
*/
|
|
52
|
+
export declare const lashOf: (p: Pick<PlayerState, "cut" | "swing" | "heavy" | "charge" | "down">, t?: number) => Lash;
|
|
53
|
+
/**
|
|
54
|
+
* By the cut (STING): the pose the tail is poised in, then the one it is driven to. The stab and
|
|
55
|
+
* the sweeps after Aliens versus Predator's first person (the user, 2026-11-16): poised up on its
|
|
56
|
+
* side of the view, in sight from the click (the user, 2026-11-16: it answered late, round the hip),
|
|
57
|
+
* driven into the view, curling in to the middle; the lash and the leap poised over the right
|
|
58
|
+
* shoulder, in the top of the view, down from above.
|
|
59
|
+
*/
|
|
60
|
+
export declare const THRUST: Lash;
|
|
61
|
+
export declare const DOWN: Lash;
|
|
62
|
+
/** A charged release: the thrust, the tail stretched out far (TAIL_FAR, the user 2026-11-23). */
|
|
63
|
+
export declare const FAR: Lash;
|
|
64
|
+
export declare const LASH: Record<number, [Lash, Lash]>;
|
|
65
|
+
/** Scratch rings of tail(): each spot's place then normal. */
|
|
66
|
+
export declare let RA: Float64Array<ArrayBuffer>, RB: Float64Array<ArrayBuffer>;
|
|
67
|
+
export declare const RC: Float64Array<ArrayBuffer>, RD: Float64Array<ArrayBuffer>;
|
|
68
|
+
/** A ring of `n` spots into `R`, as ring() makes them; or the point `c` facing `tan` (n 1). */
|
|
69
|
+
export declare const ringTo: (R: Float64Array, c: Vec3, tan: Vec3, side: Vec3, r: number, n: number) => number;
|
|
70
|
+
/** Spot `s` of `S` into `a` at `w`, in `col` on `layer`; the next place to write. */
|
|
71
|
+
export declare const spot: (a: Floats, w: number, S: Float64Array, s: number, col: number[], layer: number) => number;
|
|
72
|
+
/** The triangle of spots p, q, r as face() draws it, into `a` at `w`; the next place to write. */
|
|
73
|
+
export declare const tri: (a: Floats, w: number, P: Float64Array, p: number, Q: Float64Array, q: number, R: Float64Array, r: number, col: number[], layer: number) => number;
|
|
74
|
+
/** Triangles between the rows A (`na` spots) and B (`nb`) into `out`, as sheet() sews them. */
|
|
75
|
+
export declare const strip: (out: Out, A: Float64Array, na: number, B: Float64Array, nb: number, col: number[], layer: number) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Its tail, in the world, from the solved skeleton `s`, in the pose `lash` (lashOf()): the column's
|
|
78
|
+
* free part, from the pelvis on (the back's is in the skin, backOf()), thick, each vertebra a spool
|
|
79
|
+
* pinched at its joints (BEAD), with a blade standing out of its top (FIN, fin()) and, close, a
|
|
80
|
+
* process out of each side swept back, but near the tip; its rings follow the curve's own
|
|
81
|
+
* up, so a tail turned round the hip stays round. The stinger at its end: a curved knife's blade
|
|
82
|
+
* (blade()), glowing in the team's `color`. Written straight into `out`. `lod` 0 far, 1 near, 3 close.
|
|
83
|
+
* `fours` (0 to 1): how far the body is on all fours (fours.ts).
|
|
84
|
+
*/
|
|
85
|
+
export declare const tail: (out: Out, s: Solved, t: number, run: number, lash: Lash, color: number[], lod: number, fours?: number, look?: Pick<PlayerState, "yaw" | "pitch">) => void;
|
|
86
|
+
/** Metres ahead of the eyes the stinger points at through a strike: past where it lands, along the crosshair. */
|
|
87
|
+
export declare const AIM_AT = 6;
|
|
88
|
+
/** Where a strike's tip lands: metres ahead of the eyes, more per share of reach (Lash), and under the crosshair. */
|
|
89
|
+
export declare const HIT_AT: readonly [1.1, 1.2, 0.12];
|
|
90
|
+
/** Metres the drawn tail keeps from the eyes (tail()). */
|
|
91
|
+
export declare const CLEAR = 0.45;
|
|
92
|
+
/** Radians the stinger's root turns up from the foe: about half its curve (blade()), so its point meets him. */
|
|
93
|
+
export declare const AIM_LIFT = 0.85;
|
|
94
|
+
/** The tail's last steps that curve round into an aimed stinger. */
|
|
95
|
+
export declare const BEND = 5;
|
|
96
|
+
/** The stinger's steel: a cold, dark polish that takes the sky's reflection (SHINE). */
|
|
97
|
+
export declare const STING_STEEL: number[];
|
|
98
|
+
/** Ring scratch of blade(): four spots a ring, a place then a normal each. */
|
|
99
|
+
export declare const BA: Float64Array<ArrayBuffer>, BB: Float64Array<ArrayBuffer>;
|
|
100
|
+
/**
|
|
101
|
+
* The stinger (the user, 2026-11-16: a curved knife's blade), from the tail's end `at` along `w`,
|
|
102
|
+
* its flat faces to the sides and its back on the tail's `up`: it swells out of a collar to its
|
|
103
|
+
* widest a quarter along, then narrows to its point, curving down under the tail's way, both its
|
|
104
|
+
* back and its edge sharp, thin across. Polished steel (the user, 2026-11-23: a metallic texture),
|
|
105
|
+
* out of a collar glowing in the team's `color`.
|
|
106
|
+
*/
|
|
107
|
+
export declare const blade: (out: Out, at: Vec3, w: Vec3, up: Vec3, color: number[], sides: number, lod: number) => void;
|
|
@@ -1,246 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
export declare const CHITIN_X: number[];
|
|
10
|
-
/** Metres: the tail's length, its root's radius and its tip's, the stinger's length, width and thickness. */
|
|
11
|
-
export declare const TAIL: {
|
|
12
|
-
len: number;
|
|
13
|
-
root: number;
|
|
14
|
-
tip: number;
|
|
15
|
-
sting: number;
|
|
16
|
-
wide: number;
|
|
17
|
-
thin: number;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* A pose of the tail, as bonesOf() takes it: its arch over the back (0 behind, 1 over the head and
|
|
21
|
-
* forward down into the view), its turn about the pelvis' up (radians, to its left: through its
|
|
22
|
-
* right side, a tail pointing back turns forward), its lean to the right, its reach (as a share of
|
|
23
|
-
* its length, a whip stretched), how much of the hook at its tip it keeps, how far its root
|
|
24
|
-
* rises, how far it coils in an S, how strongly its stinger follows the aim, and how far its tip
|
|
25
|
-
* is drawn onto the foe ahead of the eyes (tail(), the user 2026-11-23: in the own view the strike
|
|
26
|
-
* lands on the crosshair).
|
|
27
|
-
*/
|
|
28
|
-
export type Lash = readonly [
|
|
29
|
-
sting: number,
|
|
30
|
-
side: number,
|
|
31
|
-
lean: number,
|
|
32
|
-
reach: number,
|
|
33
|
-
hook: number,
|
|
34
|
-
rise: number,
|
|
35
|
-
coil?: number,
|
|
36
|
-
aim?: number,
|
|
37
|
-
pull?: number
|
|
38
|
-
];
|
|
39
|
-
/** At rest: behind, hooked. */
|
|
40
|
-
export declare const HOOKED: Lash;
|
|
41
|
-
/**
|
|
42
|
-
* Where its tail is through a strike (TAILS, by the cut): it goes from HOOKED to the strike's poise
|
|
43
|
-
* in the first third of the wind-up (or most of the way to the strike for a special), so it answers
|
|
44
|
-
* the click at once (the user, 2026-11-16), is driven to its end at the strike, eased in, then
|
|
45
|
-
* comes back. A charge holds it at that poise, drawn in and coiled in an S over a tap of
|
|
46
|
-
* charge, then still but for its breath with the clock `t` (the user, 2026-11-16); let go, it
|
|
47
|
-
* strikes from there. The SPIN turns the tail low once round the body.
|
|
48
|
-
*/
|
|
49
|
-
export declare const lashOf: (p: Pick<PlayerState, "cut" | "swing" | "heavy" | "charge" | "down">, t?: number) => Lash;
|
|
50
|
-
/** A solved skeleton (solve() in rig.ts): each joint's place and turn in the world. */
|
|
51
|
-
interface Solved {
|
|
52
|
-
pos: Vec3[];
|
|
53
|
-
rot: Quat[];
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* The blade out of the top of each vertebra (the user's picture, 2026-11-17: a comb of thin curved
|
|
57
|
-
* blades down the column): metres high at the skull, at the coccyx and at its highest on the tail,
|
|
58
|
-
* how far along the tail that is and where the blades stop before the stinger; its lean toward the
|
|
59
|
-
* tail's tip at its root and how much more at its point, radians; half its chord as a share of a
|
|
60
|
-
* vertebra's length, half its thickness as a share of the column's radius; rings by level of detail.
|
|
61
|
-
*/
|
|
62
|
-
export declare const FIN: {
|
|
63
|
-
skull: number;
|
|
64
|
-
coccyx: number;
|
|
65
|
-
high: number;
|
|
66
|
-
at: number;
|
|
67
|
-
end: number;
|
|
68
|
-
lean: number;
|
|
69
|
-
bend: number;
|
|
70
|
-
chord: number;
|
|
71
|
-
thick: number;
|
|
72
|
-
steps: number[];
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Geometry baked into the beast's skin (shape() in skin.ts), posed with it by flesh() at no cost a
|
|
76
|
-
* frame: places and normals at rest, six numbers a vertex, its two joints and its weight on the
|
|
77
|
-
* second, three vertex indices a triangle and the palette region of each corner.
|
|
78
|
-
*/
|
|
79
|
-
export interface Baked {
|
|
80
|
-
v: number[];
|
|
81
|
-
j: number[];
|
|
82
|
-
w: number[];
|
|
83
|
-
t: number[];
|
|
84
|
-
c: number[];
|
|
85
|
-
}
|
|
86
|
-
/** The back's part of the column at a level of detail: baked, how many vertebrae, and the ring the tail goes on from, on the pelvis. */
|
|
87
|
-
interface Back {
|
|
88
|
-
baked: Baked;
|
|
89
|
-
n: number;
|
|
90
|
-
/** The last ring's middle in the pelvis' frame, its way, its radius. */
|
|
91
|
-
c: Vec3;
|
|
92
|
-
tan: Vec3;
|
|
93
|
-
r: number;
|
|
94
|
-
}
|
|
95
|
-
/** The pipes' colour: a very dark grey, lighter than the chitin. */
|
|
96
|
-
export declare const PIPE: number[];
|
|
97
|
-
/**
|
|
98
|
-
* The back's half of its spine, sunk in the skin, and the pipes up its neck, baked into the skin of
|
|
99
|
-
* `lod` (shape() in skin.ts): they only follow the joints, so the shader poses them with the rest
|
|
100
|
-
* of it. The vertebrae lie at rest as column() spaced them; each point hangs on the joints of the
|
|
101
|
-
* two bones it lies between, the last ring on the pelvis alone, where tail() takes the column on.
|
|
102
|
-
*/
|
|
103
|
-
export declare const backOf: (lod: number) => Back;
|
|
104
|
-
/**
|
|
105
|
-
* Its tail, in the world, from the solved skeleton `s`, in the pose `lash` (lashOf()): the column's
|
|
106
|
-
* free part, from the pelvis on (the back's is in the skin, backOf()), thick, each vertebra a spool
|
|
107
|
-
* pinched at its joints (BEAD), with a blade standing out of its top (FIN, fin()) and, close, a
|
|
108
|
-
* process out of each side swept back, but near the tip; its rings follow the curve's own
|
|
109
|
-
* up, so a tail turned round the hip stays round. The stinger at its end: a curved knife's blade
|
|
110
|
-
* (blade()), glowing in the team's `color`. Written straight into `out`. `lod` 0 far, 1 near, 3 close.
|
|
111
|
-
* `fours` (0 to 1): how far the body is on all fours (fours.ts).
|
|
112
|
-
*/
|
|
113
|
-
export declare const tail: (out: Out, s: Solved, t: number, run: number, lash: Lash, color: number[], lod: number, fours?: number, look?: Pick<PlayerState, "yaw" | "pitch">) => void;
|
|
114
|
-
/** Bone: its claws and teeth, nothing else. */
|
|
115
|
-
export declare const BONE: number[];
|
|
116
|
-
/** Its claws, hands and feet (the user, 2026-11-17: less white): a dull horn, darker than bone. */
|
|
117
|
-
export declare const CLAW: number[];
|
|
118
|
-
/** Where the metatarsal (the foot) ends, from the ankle, in the foot joint's frame: longer than the rig's foot. */
|
|
119
|
-
export declare const FOOT_TIP: Vec3;
|
|
120
|
-
export declare const metatarsal: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
121
|
-
/**
|
|
122
|
-
* Its toes at the end of the foot (FOOT_TIP), level: three long digits splayed forward and a fourth,
|
|
123
|
-
* short, behind. Each is two phalanges with a knuckle standing up between them, its tendon along
|
|
124
|
-
* its top, and at its end a big hooked claw of bone curving down past the toe.
|
|
125
|
-
*/
|
|
126
|
-
export declare const toes: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
127
|
-
/** Its tendons on a shin joint: the heel's cord down the back of the shin, and one down each side of its front. */
|
|
128
|
-
export declare const sinews: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
129
|
-
/**
|
|
130
|
-
* A thigh's open flesh, on the thigh joint of side `s` (-1 left): its window (WINDOWS).
|
|
131
|
-
*/
|
|
132
|
-
export declare const thigh: (out: Out, at: Vec3, q: Quat, lod: number, s: number) => void;
|
|
133
|
-
/**
|
|
134
|
-
* Its hips, on the pelvis joint (the user's picture, 2026-11-17): each side a ribbed tube down the
|
|
135
|
-
* groin from the hip bone to the crotch, the two a V, a cord along it, and a ribbed tube round the
|
|
136
|
-
* hip's socket from the front over the side to the back. High on the pelvis (the user, 2026-11-17),
|
|
137
|
-
* clear of the thighs as they swing.
|
|
138
|
-
*/
|
|
139
|
-
export declare const hips: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
140
|
-
export declare const ribs: (out: Out, at: Vec3, q: Quat, lod: number, low?: boolean) => void;
|
|
141
|
-
/**
|
|
142
|
-
* Its collarbones on the chest joint (the user, 2026-11-15: standing out, an exoskeleton), in the
|
|
143
|
-
* ribs' chitin: from the notch over the breastbone forward and out, then back to a knob over each
|
|
144
|
-
* shoulder.
|
|
145
|
-
*/
|
|
146
|
-
export declare const clavicles: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
147
|
-
/**
|
|
148
|
-
* Curved horns out of its back (the user, 2026-11-15): a pair on a joint, each from beside the spine
|
|
149
|
-
* out of the back near square to it and well out to the side, clear of the head, curling up a little, `len` long and `r` thick at its root, at `base` (the right
|
|
150
|
-
* one) in the joint's frame.
|
|
151
|
-
*/
|
|
152
|
-
export declare const horns: (out: Out, at: Vec3, q: Quat, lod: number, base: Vec3, len: number, r: number) => void;
|
|
153
|
-
/** The three pairs of horns: the joint, the root, the length and thickness, small low, large high. */
|
|
154
|
-
export declare const HORNS: [number, Vec3, number, number][];
|
|
155
|
-
/** Its spurs: one out of the back of each elbow (a forearm joint), one out of the back of each ankle (a shin joint). */
|
|
156
|
-
export declare const elbow: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
157
|
-
/**
|
|
158
|
-
* A forearm's window (the user's picture, 2026-11-17: only on the forearm's visible face), on the
|
|
159
|
-
* forearm joint of side `s` (1 the right): one down its outside, elbow to wrist, 26 cm, a little
|
|
160
|
-
* sunk in the skin's rough shape so no gap shows (a little clipping is fine).
|
|
161
|
-
*/
|
|
162
|
-
export declare const forearm: (out: Out, at: Vec3, q: Quat, lod: number, s: number) => void;
|
|
163
|
-
export declare const heel: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
164
|
-
/**
|
|
165
|
-
* The disc at the top of its arm (the user, 2026-11-16: where the shoulder ends and the arm
|
|
166
|
-
* begins), on the arm's swing (its joint without its twist, as the skin's top is), `s` 1 the right
|
|
167
|
-
* arm: a full disc slanting through the shoulder, thin with a rounded rim and low domed faces,
|
|
168
|
-
* its rim fading into the skin toward the armpit.
|
|
169
|
-
*/
|
|
170
|
-
export declare const cuff: (out: Out, at: Vec3, q: Quat, lod: number, s: number) => void;
|
|
171
|
-
/**
|
|
172
|
-
* Its carapace (the user, 2026-11-24: no eyes; the whole top of the head from their line up smooth,
|
|
173
|
-
* black and glossy): its colour, the height on the face it ends at, and how far its edge stands
|
|
174
|
-
* out of the face under it, metres.
|
|
175
|
-
*/
|
|
176
|
-
export declare const SHELL: number[];
|
|
177
|
-
/** Its head's chitin: the dome's (the skin's TRIM, soldier.ts) and its face's, the body's own. */
|
|
178
|
-
export declare const HEAD: number[];
|
|
179
|
-
/**
|
|
180
|
-
* The head's front (the user, 2026-11-15: one smooth block with the back): an ellipsoid round the
|
|
181
|
-
* middle of the head, its centre's height and its half width, height and depth. Its rim is the
|
|
182
|
-
* dome's front ring (CREST in skin.ts), so the face, as wide as it at every height, meets the dome
|
|
183
|
-
* with no seam; over the orbits the face is the ellipsoid itself, a smooth forehead.
|
|
184
|
-
*/
|
|
185
|
-
/**
|
|
186
|
-
* How far the head is carried over its joint (the user, 2026-11-15: a neck that shows): the face
|
|
187
|
-
* here, the dome in skin.ts (PROFILE), the neck's skin run up to it.
|
|
188
|
-
*/
|
|
189
|
-
export declare const HEAD_UP = 0.065;
|
|
190
|
-
/**
|
|
191
|
-
* Its face, eyeless: over EDGE the front of its glossy carapace, one smooth ellipsoid with the
|
|
192
|
-
* dome; under it its chitin, the cheekbones, no nose, the mouth wide open, an opening whose edge
|
|
193
|
-
* the lips hide, dark inside, with steel teeth, the fangs longest. A grid over the face, finer the
|
|
194
|
-
* closer.
|
|
195
|
-
*/
|
|
196
|
-
export declare const skull: (out: Out, head: Vec3, q: Quat, lod: number) => void;
|
|
197
|
-
/**
|
|
198
|
-
* Its lower jaw (HINGE, ARC), on the head joint: a bone taller than wide round the U, deepest at
|
|
199
|
-
* the chin, its ends buried in the throat behind the cheeks.
|
|
200
|
-
*/
|
|
201
|
-
export declare const jaw: (out: Out, head: Vec3, q: Quat, lod: number) => void;
|
|
202
|
-
export declare const belly: (out: Out, head: Vec3, q: Quat, lod: number) => void;
|
|
203
|
-
/**
|
|
204
|
-
* The fine parts of its face, too thin for a shadow (soldier.ts keeps them out of the depth passes):
|
|
205
|
-
* its steel teeth and the cords of sinew beside its mouth. Not far.
|
|
206
|
-
*/
|
|
207
|
-
export declare const teeth: (out: Out, head: Vec3, q: Quat, lod: number) => void;
|
|
208
|
-
/**
|
|
209
|
-
* Striated tubes blended into the sides of its dome (the user, 2026-11-16), on the head joint: two
|
|
210
|
-
* each side running back from behind the face along the banana's lower flank, half sunk in it and
|
|
211
|
-
* sinking wholly at both ends.
|
|
212
|
-
*/
|
|
213
|
-
export declare const hoses: (out: Out, head: Vec3, q: Quat, lod: number) => void;
|
|
214
|
-
/** A rigid piece made at the origin of its joint's frame, then only placed (store.ts). */
|
|
215
|
-
type Make = (o: Out, at: Vec3, q: Quat) => void;
|
|
216
|
-
/**
|
|
217
|
-
* A rigid piece of the xenomorph at a level of detail: its key in the store (all its vertices
|
|
218
|
-
* depend on), how it is made, and whether it is `thin`, too fine for a shadow: left out of the
|
|
219
|
-
* depth passes.
|
|
220
|
-
*/
|
|
221
|
-
export interface Part {
|
|
222
|
-
key: string;
|
|
223
|
-
make: Make;
|
|
224
|
-
thin?: boolean;
|
|
225
|
-
}
|
|
226
|
-
/** Its pieces by the joint they go on (partsOf()), those on one joint merged: one draw each a pass. */
|
|
227
|
-
export declare const PART: {
|
|
228
|
-
SHIN: number;
|
|
229
|
-
FOOT: number;
|
|
230
|
-
TOES: number;
|
|
231
|
-
CHEST: number;
|
|
232
|
-
SPINE: number;
|
|
233
|
-
ELBOW: number;
|
|
234
|
-
CUFF_L: number;
|
|
235
|
-
CUFF_R: number;
|
|
236
|
-
HEAD: number;
|
|
237
|
-
FINE: number;
|
|
238
|
-
THIGH_L: number;
|
|
239
|
-
THIGH_R: number;
|
|
240
|
-
HIPS: number;
|
|
241
|
-
FOREARM_L: number;
|
|
242
|
-
FOREARM_R: number;
|
|
243
|
-
};
|
|
244
|
-
/** The xenomorph's rigid pieces at `lod`, in PART's order; render.ts makes them all at the map's load. */
|
|
245
|
-
export declare const partsOf: (lod: number) => Part[];
|
|
246
|
-
export {};
|
|
1
|
+
export * from './xeno/common';
|
|
2
|
+
export * from './xeno/tail';
|
|
3
|
+
export * from './xeno/back';
|
|
4
|
+
export * from './xeno/limbs';
|
|
5
|
+
export * from './xeno/body';
|
|
6
|
+
export * from './xeno/head';
|
|
7
|
+
export * from './xeno/mouth';
|
|
8
|
+
export * from './xeno/parts';
|
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": "1.
|
|
5
|
+
"version": "1.9.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|