castle-web-cli 0.4.100 → 0.4.102

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/index.js CHANGED
@@ -75,7 +75,7 @@ function getWsPort(dir) {
75
75
  }
76
76
  function usage() {
77
77
  console.log(`Usage:
78
- castle-web init <dir> [--kit NAME] (kits: basic-2d (default), none)
78
+ castle-web init <dir> [--kit NAME] (kits: physics-2d (default), basic-2d, none)
79
79
  castle-web serve [dir] [--port PORT] [--host HOST] [--open] [--detach]
80
80
  castle-web restart [--port PORT]
81
81
  castle-web screenshot [--out FILE] [--port PORT]
@@ -89,8 +89,9 @@ function usage() {
89
89
  castle-web --version
90
90
 
91
91
  Kits:
92
- basic-2d Actor / behavior / scene framework for 2D games. Includes an editor and Layout / Drawing / Collider / Camera built-ins. Default if --kit is omitted.
93
- none Minimal vite + canvas setup with the castle-web SDK and no kit.
92
+ physics-2d Actor / behavior / scene framework for 2D games with matter-js physics (RigidBody / Collider / Joints on top of Layout / Drawing / Camera). Default if --kit is omitted.
93
+ basic-2d The physics-free predecessor of physics-2d; being retired.
94
+ none Minimal vite + canvas setup with the castle-web SDK and no kit.
94
95
 
95
96
  After init, read the scaffolded deck's CLAUDE.md (also AGENTS.md) for the kit's full author guide.`);
96
97
  process.exit(1);
package/dist/init.js CHANGED
@@ -30,9 +30,9 @@ el.style.cssText = \`
30
30
  el.textContent = 'Hello Castle!';
31
31
  card.appendChild(el);
32
32
  `;
33
- // Default kit copied by `init` when no --kit is given. `none`/`bare` skip the
33
+ // Default kit imported by `init` when no --kit is given. `none`/`bare` skip the
34
34
  // kit and produce the minimal index.html + game.js stub above.
35
- const DEFAULT_KIT = "basic-2d";
35
+ const DEFAULT_KIT = "physics-2d";
36
36
  // Registry version of castle-web-sdk to inject when scaffolding from a
37
37
  // globally-installed castle-web (not from inside the workspace). Bumped
38
38
  // alongside cli/sdk version bumps.