create-vimp-game 0.3.7 → 0.4.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/package.json
CHANGED
|
@@ -14,6 +14,10 @@ export default {
|
|
|
14
14
|
// a literal, and not something the game ages out of (see src/host/index.js)
|
|
15
15
|
engineApi: ENGINE_API_VERSION,
|
|
16
16
|
|
|
17
|
+
// same list as the host half and GameManifest.requires — read by the
|
|
18
|
+
// standalone SDK, which has no manifest to read it from
|
|
19
|
+
requires: [],
|
|
20
|
+
|
|
17
21
|
// MUST return { core, memory }: `memory` is the WebAssembly memory the
|
|
18
22
|
// engine reads the hot buffer out of every render tick. Without it the
|
|
19
23
|
// client silently renders nothing but the discrete frames.
|
|
@@ -27,6 +27,12 @@ export default {
|
|
|
27
27
|
// engine releases (docs/en/plugin-api.md)
|
|
28
28
|
engineApi: ENGINE_API_VERSION,
|
|
29
29
|
|
|
30
|
+
// engine capabilities the game cannot run without — the same list as
|
|
31
|
+
// GameManifest.requires (scripts/build-game-manifest.js), repeated here
|
|
32
|
+
// because the standalone SDK has no manifest: `npm run dev` builds the
|
|
33
|
+
// match from the live plugin objects. Empty is the normal state
|
|
34
|
+
requires: [],
|
|
35
|
+
|
|
30
36
|
// wasmUrl comes from the manifest: init() loads by an explicit URL instead
|
|
31
37
|
// of the glue module's own import.meta.url resolution, which does not
|
|
32
38
|
// survive inside a Worker
|