@korial29/tiny-fps 0.202.0 → 0.202.2

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/server.js CHANGED
@@ -6886,6 +6886,9 @@ var step = (p, i, w, team, armed = true, bodies = [], kit = KITS[0]) => {
6886
6886
  else if (top && free && (p.charge ?? 0) >= HEAVY_TAP) {
6887
6887
  [p.heavy, p.charge] = [true, kit.xeno ? p.charge : 0];
6888
6888
  p.swing = swingOf(p, table).ticks;
6889
+ } else if (kit.xeno && top && free && !holding && (p.charge ?? 0) > 0) {
6890
+ p.charge = 0;
6891
+ p.swing = ticks - 1;
6889
6892
  } else {
6890
6893
  p.charge = top || kit.xeno && !p.heavy ? 0 : p.charge;
6891
6894
  const s = p.swing ?? 0;
@@ -6896,7 +6899,7 @@ var step = (p, i, w, team, armed = true, bodies = [], kit = KITS[0]) => {
6896
6899
  p.heavy = !!p.swing && !!p.heavy;
6897
6900
  p.charge = kit.xeno && !p.heavy ? 0 : p.charge;
6898
6901
  }
6899
- if (kit.xeno && top && free && !holding && p.cut === STING.LEAP && p.mode === MODE.GROUND) {
6902
+ if (kit.xeno && top && free && !holding && p.heavy && p.cut === STING.LEAP && p.mode === MODE.GROUND) {
6900
6903
  p.vy = 10;
6901
6904
  p.ev |= EV.JUMP;
6902
6905
  }
@@ -7029,7 +7032,12 @@ var beast = (p, i, fresh, busy) => {
7029
7032
  if (tail && (!p.swing && !p.charge || special)) {
7030
7033
  const base = cutOf(i.keys);
7031
7034
  p.cut = i.keys & KEY.SPECIAL ? base === CUT.LEFT || base === CUT.RIGHT ? STING.SPIN : STING.LEAP : base;
7032
- [p.heavy, p.swing, p.charge] = [
7035
+ const charging = !(i.keys & KEY.DASH);
7036
+ [p.heavy, p.swing, p.charge] = charging ? [
7037
+ false,
7038
+ TAILS[p.cut].ticks - TAILS[p.cut].hold,
7039
+ 1
7040
+ ] : [
7033
7041
  false,
7034
7042
  TAILS[p.cut].ticks,
7035
7043
  0
@@ -82,4 +82,6 @@ export declare const pads: (out: Out, s: {
82
82
  /** A far runner's: fewer quads. */
83
83
  far?: boolean,
84
84
  /** The frame's pieces of the store: each pad and the collar go there, built once (store.ts). */
85
- list?: Pieces) => void;
85
+ list?: Pieces,
86
+ /** Reuse the layered shoulder pieces without the ninja's collar. */
87
+ shouldersOnly?: boolean) => void;
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.202.0",
5
+ "version": "0.202.2",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"