@nano133/nanoterra 0.3.1 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.2 (2026-10-29)
4
+
5
+ - **The Game card's character switch says what On means when a game offers a choice.** Echo Island lets a player choose between the Nanoterra character
6
+ and the game's own character (On), or plays only its own (Off). The card's words now hold for that game and for one with no choice (the starter): the title
7
+ is "Players can play as their Nanoterra character"; On adds "The game may also let a player switch to its own character."; Off says "with no choice";
8
+ `CHARACTER_SIGNIN_OFF` says a player "starts as" the island's first character and adds the same sentence. The switch's values (`"nanoterra"`, `"own"`),
9
+ `CHARACTER_NEEDS_SIGNIN` and the API do not change.
10
+
3
11
  ## 0.3.1 (2026-10-29)
4
12
 
5
13
  - **`@nano133/nanoterra/input`: a character that does not walk on by itself.** A key that is down when the player leaves the page (another tab, another window, a pop-up,
@@ -1,4 +1,4 @@
1
- // The "Game" card of /admin: two switches, "Players use their Nanoterra character" and "Players can sign in with Nanoterra". A press saves at once
1
+ // The "Game" card of /admin: two switches, "Players can play as their Nanoterra character" and "Players can sign in with Nanoterra". A press saves at once
2
2
  // (POST {api}/game, behind the same admin guard as every admin call) and the game reads the setting at run time, so the creator pushes and deploys
3
3
  // nothing. The words are in ../switches.ts. The card changes ONLY these two settings: never a look, a price or an order.
4
4
  import { CHARACTER_NEEDS_SIGNIN, CHARACTER_SIGNIN_OFF, REVIEW_LINK, REVIEW_NOTE, SWITCHES, pressOf, signinOn, stateOf } from "../switches.js";
@@ -49,7 +49,7 @@ export declare const SWITCHES: Record<SwitchId, {
49
49
  * to do (the starter's src/client/ui/player.ts draws no Nanoterra character while sign-in is Off); the card only says it.
50
50
  */
51
51
  export declare const CHARACTER_NEEDS_SIGNIN = "This needs \u201CPlayers can sign in with Nanoterra\u201D to be On: only a player who signs in from Nanoterra brings a character.";
52
- export declare const CHARACTER_SIGNIN_OFF = "Sign-in from Nanoterra is Off, so every player plays as the island's first character, a player who signed in from Nanoterra before included.";
52
+ export declare const CHARACTER_SIGNIN_OFF = "Sign-in from Nanoterra is Off, so every player starts as the island's first character, a player who signed in from Nanoterra before included. The game may also let a player switch to its own character.";
53
53
  /** What to tell the creator under the sign-in switch about Nanoterra's review. A game cannot see that review: it says so. */
54
54
  export declare const REVIEW_NOTE = "Your choice is saved here at once. The sign-in word is part of your listing file, and Nanoterra's review decides what Nanoterra shows for a game that is listed. This page cannot see that review. Check it on Nanoterra's launch page (step 6).";
55
55
  export declare const REVIEW_LINK = "https://nano133.com/build/nanoterra/launch";
@@ -36,9 +36,9 @@ export function mergeSettings(stored, defaults) {
36
36
  }
37
37
  export const SWITCHES = {
38
38
  character: {
39
- title: "Players use their Nanoterra character",
40
- on: "On: a player who signs in from Nanoterra plays as the character they picked there. Anyone else plays as the island's first character.",
41
- off: "Off: every player plays as this game's own character.",
39
+ title: "Players can play as their Nanoterra character",
40
+ on: "On: a player who signs in from Nanoterra plays as the character they picked there. Anyone else plays as the island's first character. The game may also let a player switch to its own character.",
41
+ off: "Off: every player plays as this game's own character, with no choice.",
42
42
  },
43
43
  signin: {
44
44
  title: "Players can sign in with Nanoterra",
@@ -52,7 +52,7 @@ export const SWITCHES = {
52
52
  * to do (the starter's src/client/ui/player.ts draws no Nanoterra character while sign-in is Off); the card only says it.
53
53
  */
54
54
  export const CHARACTER_NEEDS_SIGNIN = "This needs “Players can sign in with Nanoterra” to be On: only a player who signs in from Nanoterra brings a character.";
55
- export const CHARACTER_SIGNIN_OFF = "Sign-in from Nanoterra is Off, so every player plays as the island's first character, a player who signed in from Nanoterra before included.";
55
+ export const CHARACTER_SIGNIN_OFF = "Sign-in from Nanoterra is Off, so every player starts as the island's first character, a player who signed in from Nanoterra before included. The game may also let a player switch to its own character.";
56
56
  /** What to tell the creator under the sign-in switch about Nanoterra's review. A game cannot see that review: it says so. */
57
57
  export const REVIEW_NOTE = "Your choice is saved here at once. The sign-in word is part of your listing file, and Nanoterra's review decides what Nanoterra shows for a game that is listed. This page cannot see that review. Check it on Nanoterra's launch page (step 6).";
58
58
  export const REVIEW_LINK = "https://nano133.com/build/nanoterra/launch";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nano133/nanoterra",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Nanoterra for a creator's game, in one package: the player's sign-in ticket, the player's character (a toon body on the island's skeleton) and the looks ladder.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,4 +1,4 @@
1
- // The "Game" card of /admin: two switches, "Players use their Nanoterra character" and "Players can sign in with Nanoterra". A press saves at once
1
+ // The "Game" card of /admin: two switches, "Players can play as their Nanoterra character" and "Players can sign in with Nanoterra". A press saves at once
2
2
  // (POST {api}/game, behind the same admin guard as every admin call) and the game reads the setting at run time, so the creator pushes and deploys
3
3
  // nothing. The words are in ../switches.ts. The card changes ONLY these two settings: never a look, a price or an order.
4
4
 
@@ -45,9 +45,9 @@ export function mergeSettings(stored: { character?: unknown; signin?: unknown },
45
45
  export type SwitchId = "character" | "signin";
46
46
  export const SWITCHES: Record<SwitchId, { title: string; on: string; off: string }> = {
47
47
  character: {
48
- title: "Players use their Nanoterra character",
49
- on: "On: a player who signs in from Nanoterra plays as the character they picked there. Anyone else plays as the island's first character.",
50
- off: "Off: every player plays as this game's own character.",
48
+ title: "Players can play as their Nanoterra character",
49
+ on: "On: a player who signs in from Nanoterra plays as the character they picked there. Anyone else plays as the island's first character. The game may also let a player switch to its own character.",
50
+ off: "Off: every player plays as this game's own character, with no choice.",
51
51
  },
52
52
  signin: {
53
53
  title: "Players can sign in with Nanoterra",
@@ -62,7 +62,7 @@ export const SWITCHES: Record<SwitchId, { title: string; on: string; off: string
62
62
  * to do (the starter's src/client/ui/player.ts draws no Nanoterra character while sign-in is Off); the card only says it.
63
63
  */
64
64
  export const CHARACTER_NEEDS_SIGNIN = "This needs “Players can sign in with Nanoterra” to be On: only a player who signs in from Nanoterra brings a character.";
65
- export const CHARACTER_SIGNIN_OFF = "Sign-in from Nanoterra is Off, so every player plays as the island's first character, a player who signed in from Nanoterra before included.";
65
+ export const CHARACTER_SIGNIN_OFF = "Sign-in from Nanoterra is Off, so every player starts as the island's first character, a player who signed in from Nanoterra before included. The game may also let a player switch to its own character.";
66
66
 
67
67
  /** What to tell the creator under the sign-in switch about Nanoterra's review. A game cannot see that review: it says so. */
68
68
  export const REVIEW_NOTE =