create-okona-game 0.2.0 → 0.3.0

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
@@ -6,6 +6,6 @@ npm create okona-game my-party-game
6
6
 
7
7
  Scaffolds a phone-controlled multiplayer HTML5 game for [Okona](https://okonaonline.com): a lobby that shows the join code until the room is full, six seats with names and colours pushed to each phone, the frame loop, and a `game.js` with `start` / `update` / `draw` hooks holding a small sample (a coin-grab race) to replace with your game.
8
8
 
9
- Open `index.html` in a browser and the keyboard is P1 — no build step, no `package.json`. Ship it with the [`okona` CLI](https://www.npmjs.com/package/okona-cli) (`npx okona-cli`, Node 18.17+): push to your sandbox first to try it with real phones, then publish, and phones join by scanning the code on the TV.
9
+ Open `index.html` in a browser and the keyboard is P1 — no build step, no `package.json`. Ship it with the [`okona` CLI](https://www.npmjs.com/package/okona-cli) (`npx okona-cli`, Node 18.17+): push to your sandbox first to try it with real phones, then submit it to the Okona catalog; once it's approved, players join by scanning the code on the TV.
10
10
 
11
11
  Zero dependencies. Docs: https://okonaonline.com/developers/docs.html#html5 · SDK reference: https://okonaonline.com/developers/docs.html#js-sdk
package/index.js CHANGED
@@ -63,7 +63,7 @@ if (isMain) {
63
63
  console.log(" edit okona.json — title, description, keywords (the icon is icon.png; add \"screenshots\": \"shots\" for a folder of them)");
64
64
  console.log(" npx okona-cli login && npx okona-cli create # reads okona.json, writes the new game id back into it");
65
65
  console.log(" npx okona-cli push . --sandbox # catalog + icon + build; try it with real phones first");
66
- console.log(" npx okona-cli push . --publish # → https://play.okonaonline.com/games/?id=<id>");
66
+ console.log(" npx okona-cli push . --publish # submit for review: Okona approves it into the catalog");
67
67
  console.log(" (npx okona-cli runs the okona command without installing it; Node 18.17+)\n");
68
68
  console.log(" Docs: https://okonaonline.com/developers/docs.html#html5\n");
69
69
  }).catch((e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-okona-game",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Scaffold a phone-controlled multiplayer HTML5 game for Okona: lobby, join code, six seats, and a game.js to make yours.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://okonaonline.com/developers/docs.html#html5",
@@ -11,7 +11,7 @@ A phone-controlled multiplayer game for [Okona](https://okonaonline.com). Up to
11
11
 
12
12
  Open `index.html` in a browser (or `npx serve .`). The keyboard is P1: WASD/arrows move, Space is A, Shift is B. Phones need the real thing, below.
13
13
 
14
- ## Publish
14
+ ## Submit to Okona
15
15
 
16
16
  The `okona` CLI is the npm package `okona-cli` (Node 18.17+); `npx` runs it without installing.
17
17
 
@@ -19,7 +19,7 @@ The `okona` CLI is the npm package `okona-cli` (Node 18.17+); `npx` runs it with
19
19
  npx okona-cli login # once: approve a code in the portal
20
20
  npx okona-cli create # reads okona.json, writes the new game id back into it
21
21
  npx okona-cli push . --sandbox # catalog + icon + build in one go; try it with real phones first
22
- npx okona-cli push . --publish # → https://play.okonaonline.com/games/?id=<id>
22
+ npx okona-cli push . --publish # submit for review: Okona approves it into the catalog or sends it back
23
23
  ```
24
24
 
25
25
  Screenshots: put up to six images in a `shots/` folder and add `"screenshots": "shots"` to `okona.json` — the next push uploads them in name order (1.png, 2.png, …). `npx okona-cli update --title "…"` changes a field without a build upload; `npx okona-cli game <id>` shows what the portal has.
@@ -3,11 +3,11 @@
3
3
  {{NAME}} — an Okona game.
4
4
 
5
5
  This file is the LOBBY and the game loop; your game lives in game.js.
6
- Six phones scan the code on screen and become gamepads. Okona hosts the
7
- game at one link. Open this file in a browser and the keyboard is P1
6
+ Six phones scan the code on screen and become gamepads. Submit it to the
7
+ Okona catalog when it's ready. Open this file in a browser and the keyboard is P1
8
8
  (WASD/arrows, Space = A, Shift = B) so you can play what you build.
9
9
 
10
- Publish: npx okona-cli create && npx okona-cli push . --publish (okona.json holds the title, icon, screenshots)
10
+ Submit: npx okona-cli create && npx okona-cli push . --publish (okona.json holds the title, icon, screenshots)
11
11
  Docs: https://okonaonline.com/developers/docs.html#html5
12
12
  -->
13
13
  <html lang="en">