@pinkaphant/create-kolmo 0.4.0 → 0.4.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/README.md CHANGED
@@ -38,4 +38,4 @@ npm run dev
38
38
 
39
39
  The default road template generates a seeded `@khr3/roads` continuous spline (`<RoadRibbon>`), grades a `384 m` terrain pad, places a cyclotomic `@khr3/c12` `planSettlement` village (`<Settlement>` with Rapier revolute-hinged doors), and mounts a vehicle, on-foot controller, toolgun, HUD, and `<Radar>`. **WASD** moves, **Shift** runs, **E** or **F** boards, **R** uprights, **T** or right-click spawns from the toolgun, and **Space** jumps.
40
40
 
41
- Add `--no-install` to either command to skip dependency installation.
41
+ Add `--no-install` (or `--skip-install`) to either command to skip dependency installation.
@@ -18,8 +18,8 @@ for (let i = 0; i < args.length; i++) {
18
18
  template = a.slice("--template=".length);
19
19
  } else if (a === "-h" || a === "--help") {
20
20
  console.log(
21
- "Usage: npm create @pinkaphant/kolmo@latest <project-dir> [--template road|longline|lonedrive|dust] [--no-install]\n" +
22
- " or: npx @pinkaphant/create-kolmo@latest <project-dir> [--template road|longline|lonedrive|dust] [--no-install]",
21
+ "Usage: npm create @pinkaphant/kolmo@latest <project-dir> [--template road|longline|lonedrive|dust] [--no-install|--skip-install]\n" +
22
+ " or: npx @pinkaphant/create-kolmo@latest <project-dir> [--template road|longline|lonedrive|dust] [--no-install|--skip-install]",
23
23
  );
24
24
  process.exit(0);
25
25
  } else if (!a.startsWith("-") && !targetArg) {
@@ -65,7 +65,7 @@ fs.writeFileSync(templatePkgPath, JSON.stringify(templatePkg, null, 2) + "\n");
65
65
 
66
66
  const indexHtmlPath = path.join(root, "index.html");
67
67
  if (fs.existsSync(indexHtmlPath)) {
68
- const html = fs.readFileSync(indexHtmlPath, "utf8").replace(/<title>Kolmo Road<\/title>/, `<title>${pkgName}</title>`);
68
+ const html = fs.readFileSync(indexHtmlPath, "utf8").replace(/<title>[^<]*<\/title>/, `<title>${pkgName}</title>`);
69
69
  fs.writeFileSync(indexHtmlPath, html);
70
70
  }
71
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinkaphant/create-kolmo",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Scaffold a new @pinkaphant/kolmo + @khr3/core + @khr3/roads + @khr3/c12 3D physics game in one command",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,7 +14,7 @@
14
14
  "@dimforge/rapier3d-compat": "0.19.2",
15
15
  "@khr3/core": "^0.2.20",
16
16
  "@pinkaphant/ecctrl": "2.0.4-beta.9",
17
- "@pinkaphant/kolmo": "^0.11.0",
17
+ "@pinkaphant/kolmo": "^0.14.0",
18
18
  "@react-three/drei": "^10.7.7",
19
19
  "@react-three/fiber": "^9.6.1",
20
20
  "@react-three/rapier": "^2.2.0",
@@ -15,7 +15,7 @@
15
15
  "@khr3/core": "^0.2.20",
16
16
  "@khr3/roads": "^0.1.2",
17
17
  "@pinkaphant/ecctrl": "2.0.4-beta.9",
18
- "@pinkaphant/kolmo": "^0.11.0",
18
+ "@pinkaphant/kolmo": "^0.14.0",
19
19
  "@react-three/drei": "^10.7.7",
20
20
  "@react-three/fiber": "^9.6.1",
21
21
  "@react-three/rapier": "^2.2.0",
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "@dimforge/rapier3d-compat": "0.19.2",
15
15
  "@pinkaphant/ecctrl": "2.0.4-beta.9",
16
- "@pinkaphant/kolmo": "^0.11.0",
16
+ "@pinkaphant/kolmo": "^0.14.0",
17
17
  "@react-three/fiber": "^9.6.1",
18
18
  "@react-three/rapier": "^2.2.0",
19
19
  "react": "^19.2.7",
@@ -1,12 +1,14 @@
1
1
  # Kolmo Road Sandbox
2
2
 
3
- Seeded road heightfield, Skyline R34, on-foot pilot controller, and Kolmogorov toolgun.
3
+ Seeded `@khr3/roads` spline carriageway (`<RoadRibbon>`), cyclotomic `@khr3/c12` village (`<Settlement>`), roadside `<Prop>` structures, Skyline R34 (`<Vehicle>`), on-foot pilot `<Actor>` controller, `<Toolgun>`, `<Radar>`, and zero-UI `.glb` window drop-to-drive.
4
4
 
5
5
  - **WASD** / **Arrows**: Move or drive
6
+ - **Space**: Jump (on foot) / handbrake
6
7
  - **Shift**: Sprint / boost
7
8
  - **E** / **F**: Board or exit vehicle
8
9
  - **R**: Flip vehicle upright
9
10
  - **T** / **Right-Click**: Spawn armed vehicle
11
+ - **Drag & Drop `.glb`**: Auto-rig, spawn, and board any car `.glb`
10
12
 
11
13
  ```bash
12
14
  npm create @pinkaphant/kolmo@latest my-road-game
@@ -16,7 +16,7 @@
16
16
  "@khr3/core": "^0.2.20",
17
17
  "@khr3/roads": "^0.1.2",
18
18
  "@pinkaphant/ecctrl": "2.0.4-beta.9",
19
- "@pinkaphant/kolmo": "^0.11.0",
19
+ "@pinkaphant/kolmo": "^0.14.0",
20
20
  "@react-three/drei": "^10.7.7",
21
21
  "@react-three/fiber": "^9.6.1",
22
22
  "@react-three/rapier": "^2.2.0",