@air-jam/cli 1.0.0-beta.10 → 1.0.0-beta.12
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 +1 -1
- package/package.json +3 -3
- package/template-assets/documentation/how-it-works/host-system/page.mdx +14 -0
- package/template-assets/documentation/manifest.json +3 -3
- package/template-assets/managed/.airjam/ai-pack.json +3 -3
- package/template-assets/managed/docs/airjam/generated/host-system.md +14 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
> **Prerelease `1.0.0-beta.
|
|
1
|
+
> **Prerelease `1.0.0-beta.12`** from Air Jam's `beta` channel. It is not stable and may change or break between prereleases; install `@latest` for the stable release.
|
|
2
2
|
|
|
3
3
|
# `@air-jam/cli`
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@air-jam/cli",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.12",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22.15.0"
|
|
6
6
|
},
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"template-assets"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@air-jam/devtools": "1.0.0-beta.
|
|
63
|
-
"@air-jam/sdk": "^1.0.0-beta.
|
|
62
|
+
"@air-jam/devtools": "1.0.0-beta.12",
|
|
63
|
+
"@air-jam/sdk": "^1.0.0-beta.12",
|
|
64
64
|
"commander": "^14.0.0",
|
|
65
65
|
"cross-spawn": "^7.0.6",
|
|
66
66
|
"fs-extra": "^11.3.0",
|
|
@@ -231,6 +231,20 @@ const playerCount = host.players.length;
|
|
|
231
231
|
const player = host.players.find((p) => p.id === targetId);
|
|
232
232
|
```
|
|
233
233
|
|
|
234
|
+
### Player Colours
|
|
235
|
+
|
|
236
|
+
Each player starts with a colour the room picks. When the game decides a
|
|
237
|
+
player's colour (a team, a stand, a car), it says so, and every device shows
|
|
238
|
+
the player that way: the screen's player bar and controller windows, the
|
|
239
|
+
player's own phone, and `player.color` in the game and its controllers.
|
|
240
|
+
|
|
241
|
+
```tsx
|
|
242
|
+
host.setPlayerColor(playerId, team === "red" ? "#ef4444" : "#3b82f6");
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
Colours are hex, `#rrggbb`. Draw players from `player.color` so the game
|
|
246
|
+
and Air Jam never disagree.
|
|
247
|
+
|
|
234
248
|
## Controller Presentation State
|
|
235
249
|
|
|
236
250
|
The host publishes a small presentation for the phones: whether the game is
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "1.0.0-beta.
|
|
3
|
+
"packageVersion": "1.0.0-beta.12",
|
|
4
4
|
"requiredComponents": [
|
|
5
5
|
"ArcadeModeDiagram",
|
|
6
6
|
"Callout",
|
|
@@ -209,8 +209,8 @@
|
|
|
209
209
|
"sinceVersion": "1.0.0",
|
|
210
210
|
"lastVerifiedVersion": "1.0.0"
|
|
211
211
|
},
|
|
212
|
-
"size":
|
|
213
|
-
"sha256": "
|
|
212
|
+
"size": 10401,
|
|
213
|
+
"sha256": "e208ed62879f97019532dac7a114fdb6228c423e31119ef7abac999ad3eb21e6"
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
"source": "sdk/hooks/page.mdx",
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
{
|
|
94
94
|
"path": "docs/airjam/generated/host-system.md",
|
|
95
95
|
"kind": "docs-generated",
|
|
96
|
-
"size":
|
|
97
|
-
"sha256": "
|
|
96
|
+
"size": 10446,
|
|
97
|
+
"sha256": "aeb22ddc9e296f2035bb5a7de1cc9cb91a2d77b178e11eb4b311b4b12b7dfae7"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"path": "docs/airjam/generated/input-system.md",
|
|
@@ -205,5 +205,5 @@
|
|
|
205
205
|
"sha256": "0eaa064c38b4568c200fbf5cadb96f16c7c738a29469c4c955fb1ac5f8077edf"
|
|
206
206
|
}
|
|
207
207
|
],
|
|
208
|
-
"contentDigest": "
|
|
208
|
+
"contentDigest": "1b94bd0d23a2f150549248c3071031a4be52d8c5f4213e39d7fcda0363abc63a"
|
|
209
209
|
}
|
|
@@ -222,6 +222,20 @@ const playerCount = host.players.length;
|
|
|
222
222
|
const player = host.players.find((p) => p.id === targetId);
|
|
223
223
|
```
|
|
224
224
|
|
|
225
|
+
### Player Colours
|
|
226
|
+
|
|
227
|
+
Each player starts with a colour the room picks. When the game decides a
|
|
228
|
+
player's colour (a team, a stand, a car), it says so, and every device shows
|
|
229
|
+
the player that way: the screen's player bar and controller windows, the
|
|
230
|
+
player's own phone, and `player.color` in the game and its controllers.
|
|
231
|
+
|
|
232
|
+
```tsx
|
|
233
|
+
host.setPlayerColor(playerId, team === "red" ? "#ef4444" : "#3b82f6");
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
Colours are hex, `#rrggbb`. Draw players from `player.color` so the game
|
|
237
|
+
and Air Jam never disagree.
|
|
238
|
+
|
|
225
239
|
## Controller Presentation State
|
|
226
240
|
|
|
227
241
|
The host publishes a small presentation for the phones: whether the game is
|