@korial29/tiny-fps 1.26.0 → 1.27.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/brick-DaLXfFz0.js +1 -0
- package/dist/index.js +10 -10
- package/dist/landfall-pOrpVwZ8.js +21 -0
- package/dist/scene-TAxaSrlj.js +12 -0
- package/dist/{stone-HhX4Igzx.js → stone-DfOEdhLs.js} +1 -1
- package/dist/tranquility-bgIdZKs5.js +1 -0
- package/dist/types/client/announce.d.ts +2 -2
- package/dist/types/client/armor/regions.d.ts +1 -1
- package/dist/types/client/armor/scratches.d.ts +1 -1
- package/dist/types/client/audio.d.ts +2 -1
- package/dist/types/client/balls.d.ts +1 -1
- package/dist/types/client/body/constants.d.ts +3 -1
- package/dist/types/client/body/fingers.d.ts +2 -8
- package/dist/types/client/body/motion.d.ts +7 -1
- package/dist/types/client/body/wield.d.ts +1 -5
- package/dist/types/client/chase.d.ts +6 -6
- package/dist/types/client/combat/constants.d.ts +1 -1
- package/dist/types/client/combat/create.d.ts +2 -2
- package/dist/types/client/combat/events.d.ts +1 -1
- package/dist/types/client/expression.d.ts +1 -1
- package/dist/types/client/gait/fists.d.ts +2 -2
- package/dist/types/client/gait/moves.d.ts +1 -1
- package/dist/types/client/gun/held.d.ts +1 -1
- package/dist/types/client/gun/kinds.d.ts +1 -1
- package/dist/types/client/gun/reload.d.ts +3 -3
- package/dist/types/client/hud/format.d.ts +2 -2
- package/dist/types/client/hulk/hull.d.ts +1 -1
- package/dist/types/client/hunter/animation.d.ts +2 -2
- package/dist/types/client/hunter/harpoon.d.ts +1 -5
- package/dist/types/client/katana.d.ts +3 -3
- package/dist/types/client/limbs.d.ts +2 -2
- package/dist/types/client/mission.d.ts +1 -1
- package/dist/types/client/props.d.ts +1 -1
- package/dist/types/client/render/scene.d.ts +1 -1
- package/dist/types/client/render/shader.d.ts +3 -3
- package/dist/types/client/render/shots.d.ts +2 -2
- package/dist/types/client/seabed/index.d.ts +5 -0
- package/dist/types/client/skin/pose.d.ts +1 -1
- package/dist/types/client/soldier/animate.d.ts +1 -1
- package/dist/types/client/soldier/grasp.d.ts +1 -1
- package/dist/types/client/soldier/hunter.d.ts +1 -1
- package/dist/types/client/targeting-physics.d.ts +11 -7
- package/dist/types/client/targeting.d.ts +1 -1
- package/dist/types/client/taunt.d.ts +1 -1
- package/dist/types/client/voice/cast-mp3.d.ts +1 -1
- package/dist/types/client/voice/cast-opus.d.ts +1 -1
- package/dist/types/client/voice/mp3.d.ts +1 -1
- package/dist/types/client/voice/opus.d.ts +1 -1
- package/dist/types/client/wreck.d.ts +1 -1
- package/dist/types/client/xeno/back.d.ts +1 -1
- package/dist/types/client/xeno/tail.d.ts +2 -2
- package/dist/types/shared/blade.d.ts +2 -2
- package/dist/types/shared/gun.d.ts +1 -1
- package/dist/types/shared/kit.d.ts +4 -4
- package/dist/types/shared/physics.d.ts +5 -5
- package/dist/types/shared/plasma.d.ts +2 -2
- package/dist/types/shared/routes.d.ts +1 -1
- package/dist/types/shared/rover.d.ts +1 -1
- package/dist/types/shared/ship.d.ts +1 -1
- package/dist/types/shared/world.d.ts +1 -1
- package/package.json +8 -13
- package/dist/brick-DvzwRQTg.js +0 -1
- package/dist/landfall-CVwE3As0.js +0 -21
- package/dist/scene-Clcsfo7f.js +0 -12
- package/dist/tranquility-cVA6jlPl.js +0 -1
|
@@ -60,7 +60,7 @@ export declare const MOUTH: number[];
|
|
|
60
60
|
* shrinking undone every other pass (Taubin), then their normals the area-weighted mean of their
|
|
61
61
|
* triangles' again.
|
|
62
62
|
*/
|
|
63
|
-
export declare const relax: (s: Skin, r: NonNullable<Skin[
|
|
63
|
+
export declare const relax: (s: Skin, r: NonNullable<Skin['r']>) => void;
|
|
64
64
|
/** relax()'s moved places, kept from call to call. */
|
|
65
65
|
export declare let MOVED: Float32Array<ArrayBuffer>;
|
|
66
66
|
/** Per joint the dual quaternion that carries the rest pose to the pose: the rotation, then its dual. */
|
|
@@ -7,6 +7,6 @@ import type { Pose } from '../rig';
|
|
|
7
7
|
import type { Runner } from './types';
|
|
8
8
|
/** A blow taken: seconds it lasts, and how far it throws the head and the chest back (radians). */
|
|
9
9
|
export declare const FLINCH: number[];
|
|
10
|
-
export declare const animate: (book: Map<number, Runner>, others: PlayerState[], dt: number, world?: World, tracer?: Pick<Tracer,
|
|
10
|
+
export declare const animate: (book: Map<number, Runner>, others: PlayerState[], dt: number, world?: World, tracer?: Pick<Tracer, 'shock' | 'spit'> & Partial<Pick<Tracer, 'gore'>>, rovers?: Rover[], builds?: ReadonlyMap<number, number>, looks?: ReadonlyMap<number, Choice>) => void;
|
|
11
11
|
/** The pose with the right arm `k` of the way to holding the gun's grip at `grip`, its axes `ax` (aimed(), shouldered()). */
|
|
12
12
|
export declare const lifted: (pose: Pose, s: ReturnType<typeof solve>, [grip, ax]: [Vec3, Vec3[]], k: number, kind?: number) => Pose;
|
|
@@ -6,7 +6,7 @@ import type { Runner } from './types';
|
|
|
6
6
|
/** A dash trails three streaks: thin glowing (layer -2) spikes, a pair of crossed triangles each. */
|
|
7
7
|
export declare const streaks: (out: Out, r: Runner, color: number[], at: (v: Vec3) => Vec3) => void;
|
|
8
8
|
/** Whether the runner is at a rover's wheel: unarmed, his weapons put away. */
|
|
9
|
-
export declare const driving: (r: Pick<Runner,
|
|
9
|
+
export declare const driving: (r: Pick<Runner, 'p' | 'seat'>) => boolean;
|
|
10
10
|
/** How fast a hand closes or opens, 1 / s. */
|
|
11
11
|
export declare const CLOSE = 14;
|
|
12
12
|
/**
|
|
@@ -13,7 +13,7 @@ export declare const hunterKey: (lod: HunterLod, piece: HunterPiece) => string;
|
|
|
13
13
|
* (k 0) it lies back along the shoulder, CANNON_FOLD about the hinge from the chest's frame; out
|
|
14
14
|
* (k 1) it points along his look.
|
|
15
15
|
*/
|
|
16
|
-
export declare const cannonOf: (chest: Vec3, q: Quat, p: Pick<PlayerState,
|
|
16
|
+
export declare const cannonOf: (chest: Vec3, q: Quat, p: Pick<PlayerState, 'yaw' | 'pitch'>, k: number) => [Vec3, Quat];
|
|
17
17
|
/**
|
|
18
18
|
* The Hunter with all he finds on the racks carried and nothing in hand (`fists`: he has none, so
|
|
19
19
|
* no weapon is out): what his pictures on the menus show. In play his weapons are drawn on him
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { heightOf } from '../shared/physics';
|
|
2
|
+
import { cylinder } from '../shared/plasma';
|
|
3
|
+
import { aimOf, homeOf, struck } from '../shared/rover';
|
|
1
4
|
import type { Rover } from '../shared/types';
|
|
5
|
+
import { hidden, ray } from '../shared/world';
|
|
2
6
|
export declare const targetingPhysics: {
|
|
3
7
|
BOLT_SPEED: number;
|
|
4
8
|
PLAYER_R: number;
|
|
@@ -16,12 +20,12 @@ export declare const targetingPhysics: {
|
|
|
16
20
|
readonly SWIM: 9;
|
|
17
21
|
};
|
|
18
22
|
NOBODY: number;
|
|
19
|
-
aimOf:
|
|
20
|
-
cylinder:
|
|
21
|
-
heightOf:
|
|
22
|
-
homeOf:
|
|
23
|
-
hidden:
|
|
24
|
-
ray:
|
|
25
|
-
struck:
|
|
23
|
+
aimOf: typeof aimOf;
|
|
24
|
+
cylinder: typeof cylinder;
|
|
25
|
+
heightOf: typeof heightOf;
|
|
26
|
+
homeOf: typeof homeOf;
|
|
27
|
+
hidden: typeof hidden;
|
|
28
|
+
ray: typeof ray;
|
|
29
|
+
struck: typeof struck;
|
|
26
30
|
muzzleOf: (ship: Rover) => [x: number, y: number, z: number];
|
|
27
31
|
};
|
|
@@ -28,6 +28,6 @@ interface View {
|
|
|
28
28
|
export declare const shipTargeting: ({ world, camera, yaw, aspect, project, hostile }: View, ship: Rover, convergence: Vec3, rovers: Rover[], players: PlayerState[], { BOLT_SPEED, PLAYER_R, range, MODE, NOBODY, hidden, heightOf, muzzleOf }: Physics) => ShipTargeting;
|
|
29
29
|
/** The overlay is loaded only on maps with vehicles. */
|
|
30
30
|
export declare const createTargeting: (screen: HTMLElement, world: World, physics: Physics) => {
|
|
31
|
-
frame(car: Rover | undefined, { yaw, pitch }: Pick<Rover,
|
|
31
|
+
frame(car: Rover | undefined, { yaw, pitch }: Pick<Rover, 'yaw' | 'pitch'>, camera: Vec3, aspect: number, project: Renderer['project'], rovers: Rover[], players: PlayerState[], ownTeam: number, team: (id: number) => number | undefined): ScreenPoint | undefined;
|
|
32
32
|
};
|
|
33
33
|
export {};
|
|
@@ -47,7 +47,7 @@ export interface Taunts {
|
|
|
47
47
|
*/
|
|
48
48
|
frame(now: number, where: (id: number) => Vec3 | undefined): Said[];
|
|
49
49
|
}
|
|
50
|
-
export declare const createTaunts: (audio: Pick<Audio,
|
|
50
|
+
export declare const createTaunts: (audio: Pick<Audio, 'speak'> & Partial<Pick<Audio, 'play'>>,
|
|
51
51
|
/** A player's voice from the roster (speakerOf()). */
|
|
52
52
|
speaker: (id: number) => number,
|
|
53
53
|
/** A player's team from the roster. */
|