@moku-labs/game 0.14.11 → 0.14.13
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 +13 -12
- package/dist/app/page.d.mts +8 -3
- package/dist/app/page.mjs +57 -12
- package/dist/app/system.d.mts +5 -3
- package/dist/app/system.mjs +2 -0
- package/dist/app.d.mts +15 -7
- package/dist/app.mjs +131 -27
- package/dist/{assets-BrKSg1O6.mjs → assets-CEMfBogh.mjs} +471 -120
- package/dist/assets.d.mts +30 -13
- package/dist/assets.mjs +1 -1
- package/dist/cli.d.mts +105 -8
- package/dist/cli.mjs +1036 -128
- package/dist/{commands-d5Zlh9hf.d.mts → commands-DAETmK86.d.mts} +43 -7
- package/dist/{config-CdARrrhU.mjs → config-B87aFTW-.mjs} +25 -4
- package/dist/control.d.mts +130 -17
- package/dist/control.mjs +4 -4
- package/dist/{define-BN15lAWb.d.mts → define-BASd9ZUh.d.mts} +32 -4
- package/dist/dev-DbHgx-R-.mjs +89 -0
- package/dist/{fake-MpzwZhIZ.mjs → fake-6mazmHK3.mjs} +20 -2
- package/dist/features-DowEilZm.mjs +266 -0
- package/dist/{headless-CrhefcLu.d.mts → headless-cFveciuY.d.mts} +1 -1
- package/dist/hot.d.mts +4 -2
- package/dist/hot.mjs +7 -4
- package/dist/{index-0GIP3tgm.d.mts → index-DedbED3T.d.mts} +317 -69
- package/dist/index.d.mts +5 -6
- package/dist/index.mjs +3 -3
- package/dist/inspect.d.mts +12 -7
- package/dist/inspect.mjs +2 -2
- package/dist/jsx-dev-runtime.d.mts +1 -1
- package/dist/jsx-runtime.d.mts +1 -1
- package/dist/lint.d.mts +8 -3
- package/dist/lint.mjs +432 -20
- package/dist/project.d.mts +15 -1
- package/dist/project.mjs +1 -1
- package/dist/{run-Bf2hKyjZ.mjs → run-BbipFRc6.mjs} +250 -51
- package/dist/{runtime-aLkoeoGj.d.mts → runtime-DoSlRx8X.d.mts} +1 -1
- package/dist/{session-DgukhR_7.mjs → session-CeKgO2hy.mjs} +30 -2
- package/dist/{sources-Duzj6lhV.mjs → sources-Cdvb0rOS.mjs} +33 -6
- package/dist/{src-Do697seR.mjs → src-BEbJ_sSx.mjs} +29154 -11121
- package/dist/testing.d.mts +119 -14
- package/dist/testing.mjs +97 -7
- package/dist/{types-BZa187kz.d.mts → types-7GXcXxxv.d.mts} +196 -242
- package/dist/{types-BT9S_Lo2.d.mts → types-BGcda5Le.d.mts} +4464 -735
- package/dist/{types-yiHtzg1Y.d.mts → types-C73hbmxi.d.mts} +129 -17
- package/dist/{types-Bc9AvZVO.d.mts → types-DngFQJro.d.mts} +43 -5
- package/dist/{types-kNiV7iFj.d.mts → types-GHE4J5Uf.d.mts} +1027 -192
- package/dist/{visual-dMW8iqAE.mjs → visual-2m4wJL_z.mjs} +111 -7
- package/dist/visual-_XhoGeIC.d.mts +345 -0
- package/dist/visual.d.mts +1 -332
- package/dist/visual.mjs +130 -20
- package/dist/{watch-CWI_on4T.mjs → watch-BEdrp80i.mjs} +149 -30
- package/llms.txt +103 -51
- package/package.json +8 -6
- package/dist/dev-Cc50Dk7H.mjs +0 -47
- package/dist/memory-DR1ibF_s.d.mts +0 -50
- package/dist/types-DMoi447V.d.mts +0 -656
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { a as readTarget, c as defineSource, n as isTainted, o as inputOrEmpty, t as cheatsOf } from "./session-
|
|
1
|
+
import { O as Layer, a as scaleByFits } from "./visual-2m4wJL_z.mjs";
|
|
2
|
+
import { o as notInstalled } from "./dev-DbHgx-R-.mjs";
|
|
3
|
+
import { a as readTarget, c as defineSource, n as isTainted, o as inputOrEmpty, t as cheatsOf } from "./session-CeKgO2hy.mjs";
|
|
4
4
|
//#region src/plugins/flow/doors/read.ts
|
|
5
5
|
/**
|
|
6
6
|
* @file flow/doors — `read` and `watch`, the `/inspect` side. Neither changes the game.
|
|
@@ -150,8 +150,8 @@ const audioMutedSource = defineSource({
|
|
|
150
150
|
//#endregion
|
|
151
151
|
//#region src/plugins/effects/inspect.ts
|
|
152
152
|
/**
|
|
153
|
-
* @file effects plugin — the
|
|
154
|
-
* Production-safe:
|
|
153
|
+
* @file effects plugin — the sources of the `/inspect` door: the counts of `stats()` and the
|
|
154
|
+
* filter kinds with the ones a debug switch turned off. Production-safe: they only read.
|
|
155
155
|
*/
|
|
156
156
|
/**
|
|
157
157
|
* What the effects draw now: live particles, emitter instances with orphans, filter instances
|
|
@@ -175,6 +175,31 @@ const effectsSource = defineSource({
|
|
|
175
175
|
return app.effects.stats();
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
|
+
/**
|
|
179
|
+
* The filter kinds of the app, in registration order, and the ones a debug switch turned off.
|
|
180
|
+
* Production-safe: it only reads, and `off` is always `[]` there.
|
|
181
|
+
*
|
|
182
|
+
* @throws {Error} `[game] The source game.filters needs effectsPlugin.` when the app has no `effectsPlugin`.
|
|
183
|
+
* @example
|
|
184
|
+
* ```ts
|
|
185
|
+
* // The editor's tools page after the glow was switched off on the phone.
|
|
186
|
+
* read(app, sources.filters); // { kinds: ["effects.glow", …, "casefile.frost"], off: ["effects.glow"] }
|
|
187
|
+
* ```
|
|
188
|
+
*/
|
|
189
|
+
const filtersSource = defineSource({
|
|
190
|
+
id: "game.filters",
|
|
191
|
+
title: "Filter kinds",
|
|
192
|
+
input: {},
|
|
193
|
+
changes: "frame",
|
|
194
|
+
read: (app) => {
|
|
195
|
+
if (app.effects === void 0) throw notInstalled("game.filters", "effectsPlugin");
|
|
196
|
+
const { diagnostics } = app.effects;
|
|
197
|
+
return {
|
|
198
|
+
kinds: diagnostics.kinds(),
|
|
199
|
+
off: diagnostics.disabled()
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
});
|
|
178
203
|
//#endregion
|
|
179
204
|
//#region src/plugins/model/inspect.ts
|
|
180
205
|
/**
|
|
@@ -229,7 +254,8 @@ function underOf(world, entity) {
|
|
|
229
254
|
* ```ts
|
|
230
255
|
* // The editor's stats panel on the board of Timber Town, in a dev build.
|
|
231
256
|
* read(app, sources.render);
|
|
232
|
-
* // { fps: 60, frameMs: 3.4, textures: 12, textureMb: 41.25,
|
|
257
|
+
* // { fps: 60, drawn: 60, frameMs: 3.4, textures: 12, textureMb: 41.25,
|
|
258
|
+
* // textureMbSplit: { art: 30.1, targets: 9.75, kept: 1.4 }, views: 180, pooled: 24, renderPasses: 1, …, drawCalls: 14 }
|
|
233
259
|
* ```
|
|
234
260
|
*/
|
|
235
261
|
const renderSource = defineSource({
|
|
@@ -741,6 +767,7 @@ const sources = Object.freeze({
|
|
|
741
767
|
sounds: soundsSource,
|
|
742
768
|
audioMuted: audioMutedSource,
|
|
743
769
|
effects: effectsSource,
|
|
770
|
+
filters: filtersSource,
|
|
744
771
|
assets: assetsSource,
|
|
745
772
|
log: logSource,
|
|
746
773
|
explain: explainSource,
|