@korial29/tiny-fps 0.164.0 → 0.165.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/index.js +21 -21
- package/dist/types/client/skin.d.ts +10 -0
- package/dist/types/client/xeno.d.ts +19 -3
- package/package.json +1 -1
|
@@ -100,6 +100,11 @@ export interface Skin {
|
|
|
100
100
|
}
|
|
101
101
|
/** How far out the face is (its z) at x across, height y: the carved surface, found by halving. */
|
|
102
102
|
export declare const onHead: (x: number, y: number) => number;
|
|
103
|
+
/**
|
|
104
|
+
* The dome's section `z` behind the face's edge (0 to PROFILE[0]), in the rest pose: its centre's
|
|
105
|
+
* height, half width and half height (an ellipse). xeno.ts lays its veins on it.
|
|
106
|
+
*/
|
|
107
|
+
export declare const domeAt: (z: number) => [number, number, number];
|
|
103
108
|
/** How far out the woman's bust stands at its fullest, on the man's rest mesh, metres. */
|
|
104
109
|
export declare const BUST = 0.028;
|
|
105
110
|
/** Where it is fullest, metres up (the user, 2026-11-11: a little higher; it was 1.345). */
|
|
@@ -119,6 +124,11 @@ export declare const beast: (lod: number) => Skin;
|
|
|
119
124
|
export declare const cut: (lod: number, limb: number, build?: number) => Skin[];
|
|
120
125
|
/** A build's joints at rest (solve() of its rest pose), for what is placed on its body. */
|
|
121
126
|
export declare const bindOf: (build?: number) => Vec3[];
|
|
127
|
+
/**
|
|
128
|
+
* The upper arm of shoulder joint `j` in the world without its turn about itself: the swing of
|
|
129
|
+
* its rotation from the collarbone's, about the bone's rest axis, on the collarbone's.
|
|
130
|
+
*/
|
|
131
|
+
export declare const swing: (rot: Quat[], j: number, build?: number) => Quat;
|
|
122
132
|
/** The palette regions that are bare skin: the shader's skin pass (SKIN_LAYER) takes them. */
|
|
123
133
|
export declare const BARE_REGIONS: number[];
|
|
124
134
|
/**
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { Vec3 } from './mesh';
|
|
2
2
|
import type { Quat } from './rig';
|
|
3
3
|
import type { Out } from './verts';
|
|
4
|
-
/**
|
|
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
|
+
*/
|
|
5
8
|
export declare const CHITIN_X: number[];
|
|
6
9
|
/** Metres: the tail's length, its root's radius and its tip's, the stinger's length. */
|
|
7
10
|
export declare const TAIL: {
|
|
@@ -24,7 +27,7 @@ interface Solved {
|
|
|
24
27
|
* forward past the head. The stinger glows in the team's `color`. `lod` 0 far, 1 near, 2 close.
|
|
25
28
|
*/
|
|
26
29
|
export declare const column: (out: Out, s: Solved, t: number, run: number, sting: number, color: number[], lod: number) => void;
|
|
27
|
-
/** Bone: its claws. */
|
|
30
|
+
/** Bone: its claws and teeth, nothing else. */
|
|
28
31
|
export declare const BONE: number[];
|
|
29
32
|
/** Where the metatarsal (the foot) ends, from the ankle, in the foot joint's frame: longer than the rig's foot. */
|
|
30
33
|
export declare const FOOT_TIP: Vec3;
|
|
@@ -75,7 +78,14 @@ export declare const HORNS: [number, Vec3, number, number][];
|
|
|
75
78
|
/** Its spurs: one out of the back of each elbow (a forearm joint), one out of the back of each ankle (a shin joint). */
|
|
76
79
|
export declare const elbow: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
77
80
|
export declare const heel: (out: Out, at: Vec3, q: Quat, lod: number) => void;
|
|
78
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* The disc at the top of its arm (the user, 2026-11-16: where the shoulder ends and the arm
|
|
83
|
+
* begins), on the arm's swing (its joint without its twist, as the skin's top is), `s` 1 the right
|
|
84
|
+
* arm: a full disc slanting through the shoulder, thin with a rounded rim and low domed faces,
|
|
85
|
+
* its rim fading into the skin toward the armpit.
|
|
86
|
+
*/
|
|
87
|
+
export declare const cuff: (out: Out, at: Vec3, q: Quat, lod: number, s: number) => void;
|
|
88
|
+
/** Its head's chitin: the dome's (the skin's TRIM, soldier.ts) and its face's, the body's own. */
|
|
79
89
|
export declare const HEAD: number[];
|
|
80
90
|
/**
|
|
81
91
|
* The head's front (the user, 2026-11-15: one smooth block with the back): an ellipsoid round the
|
|
@@ -94,6 +104,12 @@ export declare const HEAD_UP = 0.065;
|
|
|
94
104
|
* with grey teeth, the fangs longest. A grid over the face, finer the closer.
|
|
95
105
|
*/
|
|
96
106
|
export declare const skull: (out: Out, head: Vec3, q: Quat, lod: number) => void;
|
|
107
|
+
/**
|
|
108
|
+
* Veins along its dome (the user, 2026-11-16), on the head joint: on each side three running back
|
|
109
|
+
* from the face's edge along the banana, wandering a little up and down its side, thinning toward
|
|
110
|
+
* the back, with a short branch off each; one along each side of the top. Half sunk in the skin.
|
|
111
|
+
*/
|
|
112
|
+
export declare const veins: (out: Out, head: Vec3, q: Quat, lod: number) => void;
|
|
97
113
|
/** Its eyes, glowing slits at the back of the orbits in the team's `color`. */
|
|
98
114
|
export declare const eyes: (out: Out, head: Vec3, q: Quat, color: number[]) => void;
|
|
99
115
|
export {};
|
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.165.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|