@moku-labs/game 0.15.13 → 0.15.14

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/app.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { Nt as audioPlugin, St as effectsPlugin, V as platformPlugin, i as screen, m as flattenFeatures, t as createApp } from "./src-3_HjYegY.mjs";
1
+ import { Nt as audioPlugin, St as effectsPlugin, V as platformPlugin, i as screen, m as flattenFeatures, t as createApp } from "./src-Co5sO4z1.mjs";
2
2
  import { t as memory } from "./memory-CWlqhS7l.mjs";
3
3
  import { n as isFakeClock, t as fakeClock } from "./fake-6mazmHK3.mjs";
4
4
  //#region src/app/define.ts
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as spawn, $t as exit, A as types_exports$6, At as Outline, B as textPlugin, Bt as rendererPlugin, C as types_exports$13, Ct as Emitter, D as types_exports$9, Dt as Displacement, E as types_exports$10, Et as ColorMatrix, F as types_exports$1, Ft as assetsPlugin, G as frames, Gt as PERF_GAP_BUCKETS, H as HAPTIC_KINDS, Ht as frameAt, I as types_exports, It as animPlugin, J as parallel, Jt as SHADER_WHATS, K as haptic, Kt as PERF_LOG_VERSION, L as uiPlugin, Lt as AnimPlayer, M as types_exports$4, Mt as debugPlugin, N as types_exports$3, Nt as audioPlugin, O as types_exports$8, Ot as Glow, P as types_exports$2, Pt as scenesPlugin, Q as sfx, R as resolve, Rt as Animation, S as types_exports$14, St as effectsPlugin, T as types_exports$11, Tt as Blur, U as defineAnimation, Ut as MONITOR_SECTIONS, V as platformPlugin, Vt as PASS_KINDS, W as external, Wt as PERF_CAUSES, X as sequence, Xt as worldPlugin, Y as play, Yt as DEMAND_REASONS, Z as set, Zt as flowPlugin, _ as defineBundles, _t as Traceable, a as cubicBezier, an as lifecyclePlugin, at as inputPlugin, b as types_exports$16, bt as messageArgument, c as hint, ct as Held, d as defineScene, dt as PointerOver, en as slot, et as spawned, f as tr, ft as Pressable, g as music, gt as Touchable, h as defineEmitter, ht as Tappable, i as screen, in as SaveUnreadableError, it as wait, j as types_exports$5, jt as defineFilter, k as types_exports$7, kt as Noise, l as schedule, lt as Hovered, m as flattenFeatures, mt as Swipeable, n as createPlugin, nn as type, nt as tween, o as defineEffect, on as timePlugin, ot as Draggable, p as defineFeature, pt as Pressed, q as mark, qt as PROBLEM_RULES, r as defineGame, rn as modelPlugin, rt as use, s as guide, sn as clockPlugin, st as DropTarget, t as createApp, tn as to, tt as stagger, u as projection, ut as Pointer, v as load, vt as Traced, w as types_exports$12, wt as Alpha, x as types_exports$15, xt as messageDuration, y as types_exports$17, yt as i18nPlugin, z as defineMotion, zt as Frames } from "./src-3_HjYegY.mjs";
1
+ import { $ as spawn, $t as exit, A as types_exports$6, At as Outline, B as textPlugin, Bt as rendererPlugin, C as types_exports$13, Ct as Emitter, D as types_exports$9, Dt as Displacement, E as types_exports$10, Et as ColorMatrix, F as types_exports$1, Ft as assetsPlugin, G as frames, Gt as PERF_GAP_BUCKETS, H as HAPTIC_KINDS, Ht as frameAt, I as types_exports, It as animPlugin, J as parallel, Jt as SHADER_WHATS, K as haptic, Kt as PERF_LOG_VERSION, L as uiPlugin, Lt as AnimPlayer, M as types_exports$4, Mt as debugPlugin, N as types_exports$3, Nt as audioPlugin, O as types_exports$8, Ot as Glow, P as types_exports$2, Pt as scenesPlugin, Q as sfx, R as resolve, Rt as Animation, S as types_exports$14, St as effectsPlugin, T as types_exports$11, Tt as Blur, U as defineAnimation, Ut as MONITOR_SECTIONS, V as platformPlugin, Vt as PASS_KINDS, W as external, Wt as PERF_CAUSES, X as sequence, Xt as worldPlugin, Y as play, Yt as DEMAND_REASONS, Z as set, Zt as flowPlugin, _ as defineBundles, _t as Traceable, a as cubicBezier, an as lifecyclePlugin, at as inputPlugin, b as types_exports$16, bt as messageArgument, c as hint, ct as Held, d as defineScene, dt as PointerOver, en as slot, et as spawned, f as tr, ft as Pressable, g as music, gt as Touchable, h as defineEmitter, ht as Tappable, i as screen, in as SaveUnreadableError, it as wait, j as types_exports$5, jt as defineFilter, k as types_exports$7, kt as Noise, l as schedule, lt as Hovered, m as flattenFeatures, mt as Swipeable, n as createPlugin, nn as type, nt as tween, o as defineEffect, on as timePlugin, ot as Draggable, p as defineFeature, pt as Pressed, q as mark, qt as PROBLEM_RULES, r as defineGame, rn as modelPlugin, rt as use, s as guide, sn as clockPlugin, st as DropTarget, t as createApp, tn as to, tt as stagger, u as projection, ut as Pointer, v as load, vt as Traced, w as types_exports$12, wt as Alpha, x as types_exports$15, xt as messageDuration, y as types_exports$17, yt as i18nPlugin, z as defineMotion, zt as Frames } from "./src-Co5sO4z1.mjs";
2
2
  import { $ as component, H as Shape, I as Display, J as Exiting, L as HudPart, Q as Tree, R as NineSlice, S as bind, T as label, U as Sprite, V as Parent, W as Transform, X as Now, Y as Layer, Z as Order, b as Countdown, d as LocalWrite, et as mut, g as popup, it as tag, l as DebugTrigger, nt as system, p as ScrollState, q as sprite, s as Box, tt as resource, v as defineTokens, w as defineTextStyles, x as Text, y as defineStyle, z as Overlay } from "./visual-CbGKzlj0.mjs";
3
3
  import { t as defineComponent } from "./component-DGg5DqKK.mjs";
4
4
  export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Blur, Box, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, types_exports$6 as Flow, Frames, Glow, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, MONITOR_SECTIONS, types_exports$10 as Model, NineSlice, Noise, Now, Order, Outline, Overlay, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, types_exports$11 as Platform, Pointer, PointerOver, Pressable, Pressed, types_exports$12 as Renderer, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shape, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
@@ -8798,8 +8798,11 @@ function schemaOf(types) {
8798
8798
  //#region src/plugins/world/ecs/systems.ts
8799
8799
  /** The one phase that runs in every mode, because `renderer.sync` lives in it. */
8800
8800
  const ALWAYS = "sync";
8801
- /** The system that hands the world to Pixi: the last of its phase, so a frame draws what every system wrote. */
8802
- const DRAWS = "renderer.sync";
8801
+ /**
8802
+ * The name of the system that hands the world to Pixi: the last of its phase, so a frame draws what every system
8803
+ * wrote. The renderer registers its system under this name.
8804
+ */
8805
+ const DRAWS_SYSTEM = "renderer.sync";
8803
8806
  /** Rows a timing table holds before it first grows. */
8804
8807
  const TIMING_ROWS = 16;
8805
8808
  /** The four phases, in frame order. */
@@ -8898,8 +8901,9 @@ function storeSlots(count) {
8898
8901
  return slots;
8899
8902
  }
8900
8903
  /**
8901
- * Registers a system at the end of its phase list, before `renderer.sync` in phase `sync`, and returns the remover. Its query and its
8902
- * `scenes` are read here, once: a later change to the definition is not seen. A dev build checks
8904
+ * Registers a system at the end of its phase list and returns the remover. In phase `sync` it goes
8905
+ * before `renderer.sync`, which stays last. Its query and its `scenes` are read here, once: a
8906
+ * later change to the definition is not seen. A dev build checks
8903
8907
  * the `scenes` against the scenes the features declare, once the world started.
8904
8908
  *
8905
8909
  * @param ctx - Domain context of the world plugin.
@@ -8928,7 +8932,7 @@ function registerSystem(ctx, definition) {
8928
8932
  walk: plan.names.length === 0 ? void 0 : new SystemWalk(ctx, plan)
8929
8933
  };
8930
8934
  const list = state.systems[definition.phase];
8931
- const draws = list.findIndex((known) => known.definition.name === DRAWS);
8935
+ const draws = list.findIndex((known) => known.definition.name === DRAWS_SYSTEM);
8932
8936
  if (draws === -1) list.push(entry);
8933
8937
  else list.splice(draws, 0, entry);
8934
8938
  if (state.timing !== void 0) giveRow(state, state.timing, definition.name);
@@ -29055,8 +29059,12 @@ function watchOverlays(sctx) {
29055
29059
  }
29056
29060
  //#endregion
29057
29061
  //#region src/plugins/renderer/sync/system.ts
29058
- /** The name the system is registered under; it shows up in a world error message. */
29059
- const SYNC_SYSTEM_NAME = "renderer.sync";
29062
+ /**
29063
+ * @file renderer/sync — the one world system the renderer registers. It runs in phase `"sync"`,
29064
+ * which `world` runs in every mode, so a fast walk still sets the picture.
29065
+ */
29066
+ /** The name the system is registered under, which `world` keeps last in phase `sync`; it shows up in a world error message. */
29067
+ const SYNC_SYSTEM_NAME = DRAWS_SYSTEM;
29060
29068
  /**
29061
29069
  * Wraps the pass in a world system definition. The system queries nothing: all the work is
29062
29070
  * driven by the change sets of the frame.
@@ -58768,18 +58776,20 @@ function registerComponents(ctx, jsx) {
58768
58776
  for (const feature of ctx.deps.flow.features.all()) for (const entry of feature.description.ui ?? []) if (isComponent(entry)) jsx.register(entry);
58769
58777
  }
58770
58778
  /**
58771
- * Opens the two systems of phase `layout`, the `ui.enter` system of phase `sync`, which plays the
58772
- * enter hooks after the game's systems (F48), the seven world hooks of `Tree`, `Box`, `Pressed` and
58773
- * `PointerOver`, the two that tell the hosting step a view lost its `Parent` or its `Held` (a
58774
- * view freed so may hang under its host again), the listener that asks for every root to be built again after a restore or a
58775
- * load, the two effect handlers, the hint listener that buffers every released hint for
58776
- * the `change` hooks of the next frame step, the three tap listeners (the `LocalWrite` patch, the
58777
- * pointer tap that clears the keyboard focus, and the tap that starts or ends the editing of a
58778
- * text field), the pointer door that opens the keyboard inside the DOM listener, the key listener
58779
- * of the focus and `LocalWrite` as an input control, so the cursor shows a hand over a local-state
58780
- * button. On an agent page also the tap counter of `DebugTrigger` and its check of a view that takes
58781
- * no press. Every remover goes into the state, so the teardown closes exactly these, and gives every
58782
- * hosted view its layer back before the ui entities go.
58779
+ * Opens the two systems of phase `layout`, the system `ui.enter` of phase `sync`, the seven world
58780
+ * hooks of `Tree`, `Box`, `Pressed` and `PointerOver`, the two that tell the hosting step a view
58781
+ * lost its `Parent` or its `Held` (a view freed so may hang under its host again), the listener
58782
+ * that asks for every root to be built again after a restore or a load, the two effect handlers,
58783
+ * the hint listener that buffers every released hint for the `change` hooks of the next frame
58784
+ * step, the three tap listeners (the `LocalWrite` patch, the pointer tap that clears the keyboard
58785
+ * focus, and the tap that starts or ends the editing of a text field), the pointer door that opens
58786
+ * the keyboard inside the DOM listener, the key listener of the focus and `LocalWrite` as an input
58787
+ * control, so the cursor shows a hand over a local-state button. On an agent page also the tap
58788
+ * counter of `DebugTrigger` and its check of a view that takes no press.
58789
+ *
58790
+ * The `Box` hook only queues an element; `ui.enter` plays its enter hook after the game's systems
58791
+ * of the frame and before it is drawn (F48). Every remover goes into the state, so the teardown
58792
+ * closes exactly these, and gives every hosted view its layer back before the ui entities go.
58783
58793
  *
58784
58794
  * @param ctx - Domain context of the ui plugin.
58785
58795
  * @param jsx - The jsx module.
package/dist/testing.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $t as exit, Qt as refuseStart, m as flattenFeatures, nn as type, t as createApp } from "./src-3_HjYegY.mjs";
1
+ import { $t as exit, Qt as refuseStart, m as flattenFeatures, nn as type, t as createApp } from "./src-Co5sO4z1.mjs";
2
2
  import { n as saveOf, t as memory } from "./memory-CWlqhS7l.mjs";
3
3
  import { t as fakeClock } from "./fake-6mazmHK3.mjs";
4
4
  import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-BA6ffzqD.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moku-labs/game",
3
- "version": "0.15.13",
3
+ "version": "0.15.14",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [