@korial29/tiny-fps 0.103.0 → 0.104.1
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 +17 -16
- package/dist/local.js +1 -1
- package/dist/server.js +3 -1
- package/dist/types/client/armor.d.ts +41 -0
- package/dist/types/client/body.d.ts +13 -2
- package/dist/types/client/foley.d.ts +7 -0
- package/dist/types/client/gun.d.ts +14 -2
- package/dist/types/client/helmet.d.ts +52 -8
- package/dist/types/client/mesh.d.ts +5 -0
- package/dist/types/client/pack.d.ts +49 -0
- package/dist/types/client/render.d.ts +3 -2
- package/dist/types/client/sfx.d.ts +3 -0
- package/dist/types/client/skin.d.ts +6 -2
- package/dist/types/client/soldier.d.ts +5 -5
- package/dist/types/shared/world.d.ts +3 -1
- package/package.json +1 -1
|
@@ -4,8 +4,12 @@ import type { Vec3 } from './mesh';
|
|
|
4
4
|
export declare const hairOf: (id: number) => number[];
|
|
5
5
|
/** An iris colour for the runner `id`, as hairOf(). */
|
|
6
6
|
export declare const eyesOf: (id: number) => number[];
|
|
7
|
-
/** Jacket, its darker trim, trousers (the suit's legs, darker), skin, hair, boots, sole, gloves, the whites of the eyes and their irises, the lips, the skin in its folds (nostrils, the mouth, the ears' hollows), the brows, between the hair and the skin, the shaved beard's shadow and its edge, the line between the lips (as the folds), the light caught in the eyes, which glows, and the cut's cauterized face, which glows too. */
|
|
8
|
-
|
|
7
|
+
/** Jacket, its darker trim, trousers (the suit's legs, darker), skin, hair, boots, sole, gloves, the whites of the eyes and their irises, the lips, the skin in its folds (nostrils, the mouth, the ears' hollows), the brows, between the hair and the skin, the shaved beard's shadow and its edge, the line between the lips (as the folds), the side stripe on the jacket and on the trousers and the belt (the jacket's and the trousers' own colours but on a space suit), the light caught in the eyes, which glows, and the cut's cauterized face, which glows too. */
|
|
8
|
+
/**
|
|
9
|
+
* With `suit` (the moon's, the user 2026-11-10), a dark grey space suit under white armour: the
|
|
10
|
+
* team's colour only in a stripe down each side, black gloves, boots and belt.
|
|
11
|
+
*/
|
|
12
|
+
export declare const palette: (jacket: number[], hair?: number[], iris?: number[], suit?: boolean) => number[][];
|
|
9
13
|
/** The ring where the eye's sleeve ends in the glove, which body.ts starts the palm on, and its sides: the close ones (the eye's body is close). A thin wrist (3.2 cm until the user, 2026-11-09). */
|
|
10
14
|
export declare const CUFF: number[];
|
|
11
15
|
export declare const CUFF_SIDES: number;
|
|
@@ -4,7 +4,7 @@ import type { Gait, Seat } from './gait';
|
|
|
4
4
|
import type { Tracer } from './beams';
|
|
5
5
|
import type { Piece } from './limbs';
|
|
6
6
|
import type { Vec3 } from './mesh';
|
|
7
|
-
import type { Pose } from './rig';
|
|
7
|
+
import type { Pose, Quat } from './rig';
|
|
8
8
|
import type { Trail } from './trail';
|
|
9
9
|
/** What a runner keeps between frames. */
|
|
10
10
|
export interface Runner {
|
|
@@ -67,7 +67,7 @@ export declare const dissolve: (out: number[], from: number, k: number) => void;
|
|
|
67
67
|
export declare const stance: (r: Runner) => {
|
|
68
68
|
s: {
|
|
69
69
|
pos: Vec3[];
|
|
70
|
-
rot:
|
|
70
|
+
rot: Quat[];
|
|
71
71
|
};
|
|
72
72
|
sink: number;
|
|
73
73
|
yaw: number;
|
|
@@ -75,14 +75,14 @@ export declare const stance: (r: Runner) => {
|
|
|
75
75
|
} | {
|
|
76
76
|
s: {
|
|
77
77
|
pos: Vec3[];
|
|
78
|
-
rot:
|
|
78
|
+
rot: Quat[];
|
|
79
79
|
};
|
|
80
80
|
sink: number;
|
|
81
81
|
yaw: number;
|
|
82
82
|
carry: [Vec3, Vec3[]] | undefined;
|
|
83
83
|
};
|
|
84
84
|
/** Draws the runner and gives back its solved skeleton, or nothing once a bolt has burnt it away. */
|
|
85
|
-
export declare const soldier: (out: number[], r: Runner, color: number[], lod?: number, helmets?: boolean) => {
|
|
85
|
+
export declare const soldier: (out: number[], r: Runner, color: number[], lod?: number, helmets?: boolean, armored?: boolean) => {
|
|
86
86
|
pos: Vec3[];
|
|
87
|
-
rot:
|
|
87
|
+
rot: Quat[];
|
|
88
88
|
} | undefined;
|
|
@@ -57,8 +57,10 @@ export interface WorldDef {
|
|
|
57
57
|
gravity?: number;
|
|
58
58
|
/** What is drawn around the play area: the city (street, towers, parks, traffic) or the moon (crater rim, base, stars, the Earth). Absent: the city. */
|
|
59
59
|
scenery?: 'city' | 'moon';
|
|
60
|
-
/** Whether the runners wear space helmets. */
|
|
60
|
+
/** Whether the runners wear space helmets, with the pack on the back, its hose and the breath. */
|
|
61
61
|
helmets?: boolean;
|
|
62
|
+
/** Whether the runners wear armour over a grey suit: white with space helmets, else in the team's colour. */
|
|
63
|
+
armor?: boolean;
|
|
62
64
|
/** Ground that is not flat (relief.ts), round the brushes: the moon's crater floor. Absent: none. */
|
|
63
65
|
relief?: ReliefDef;
|
|
64
66
|
/** Where the rovers (rover.ts) are parked, each as a spawn: the middle of its wheels on the ground and the yaw of its nose. Absent: none. */
|
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.104.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|