[GH-ISSUE #408] Pixelforge 0.6.x: NPC standing axis (resident/transient/fringe/destitute), merchant stalls, loitering #207

Closed
opened 2026-10-20 17:25:23 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Aug 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/408

Originally assigned to: @kolacheee on GitHub.

What

Pixelforge NPCs are currently one-note: every cast member gets a house (or a special building) in the settlement and wanders near it forever. There is no way to express how rooted an NPC is — a travelling spice trader, a hermit at the wood's edge, and a beggar in the square all compile identically to "villager with a roof."

This issue tracks the 0.6.x arc: a per-NPC standing axis and its immediate consequences, as the foundation for NPC schedules (next arc).

Design (settled)

  • standing — optional cast enum, orthogonal to kind: resident (default) | transient | fringe | destitute. Controls whether a dwelling is minted and where the NPC anchors; never the sprite.
    • resident — a dwelling at the settlement root (or their actual home zone — see refinement), special buildings from kind as today.
    • transient — no dwelling; anchors to a public spot (inn interior, a resident shop's front, or the plaza, spread by seeded rotation). A transient merchant sets up a light 3-table market stall in a free lot (never a permanent shop) and tends it; no free lot → loiters like any transient.
    • fringe — no dwelling; the wilds zone (else the settlement's outer margin).
    • destitute — no dwelling; the town's public center.
  • Dwelling gate is home-aware (refinement): a resident whose home is a place/wilds zone lives and sleeps there — no phantom empty house in the settlement.
  • Tree/roof clip fix (refinement, pre-existing bug surfaced by playtesting this arc): scattered trees could land under a building's roof overhang (grass + non-solid tiles the checks missed), drawing a trunk "inside" the wall. scatterTrees now guards the overhead layer; RNG stream untouched.

Versions

  • 0.6.0 — the standing axis: brief guidance/schema/fold + compiler gates + anchors.
  • 0.6.1 — transient-merchant stalls + transient loitering (incl. beside-the-door placement and browsing inside interior shops, from live playtest feedback).
  • 0.6.2 — home-aware dwelling gate + roof-overhang tree guard + N>1 merchant coverage.

Validation

Each version passed the full local gauntlet: test-brief.mjs harness (new cases 11b–11j), package build with client.js sha256==manifest, prettier/eslint on gated files, adversarial review workflows (3 rounds, brute-force placement sweeps of 57k–60k compiled worlds, zero bad tiles), and a live in-engine playtest on a seeded demo world.

Out of scope (follow-ups)

  • NPC schedules on the kind × standing model (daypart templates, slowed package-local clock, cross-zone relocation) — next arc, design complete.
  • Class/wealth axis (dwelling quality, districts) — deferred layer.
  • Asset-generation revisit: NPC-spawns-on-object nudge, general object overlap.
  • Enterable facade shops (shops without a bound workshop place have no interior).
Originally created by @kolacheee on GitHub (Aug 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/408 Originally assigned to: @kolacheee on GitHub. ## What Pixelforge NPCs are currently one-note: every cast member gets a house (or a special building) in the settlement and wanders near it forever. There is no way to express how *rooted* an NPC is — a travelling spice trader, a hermit at the wood's edge, and a beggar in the square all compile identically to "villager with a roof." This issue tracks the **0.6.x arc**: a per-NPC `standing` axis and its immediate consequences, as the foundation for NPC schedules (next arc). ## Design (settled) - **`standing`** — optional cast enum, orthogonal to `kind`: `resident` (default) | `transient` | `fringe` | `destitute`. Controls whether a dwelling is minted and where the NPC anchors; never the sprite. - `resident` — a dwelling at the settlement root (or their actual home zone — see refinement), special buildings from `kind` as today. - `transient` — no dwelling; anchors to a public spot (inn interior, a resident shop's front, or the plaza, spread by seeded rotation). A transient **merchant** sets up a light 3-table market stall in a free lot (never a permanent shop) and tends it; no free lot → loiters like any transient. - `fringe` — no dwelling; the wilds zone (else the settlement's outer margin). - `destitute` — no dwelling; the town's public center. - **Dwelling gate is home-aware** (refinement): a `resident` whose `home` is a place/wilds zone lives and sleeps *there* — no phantom empty house in the settlement. - **Tree/roof clip fix** (refinement, pre-existing bug surfaced by playtesting this arc): scattered trees could land under a building's roof overhang (grass + non-solid tiles the checks missed), drawing a trunk "inside" the wall. `scatterTrees` now guards the overhead layer; RNG stream untouched. ## Versions - **0.6.0** — the `standing` axis: brief guidance/schema/fold + compiler gates + anchors. - **0.6.1** — transient-merchant stalls + transient loitering (incl. beside-the-door placement and browsing inside interior shops, from live playtest feedback). - **0.6.2** — home-aware dwelling gate + roof-overhang tree guard + N>1 merchant coverage. ## Validation Each version passed the full local gauntlet: `test-brief.mjs` harness (new cases 11b–11j), package build with `client.js` sha256==manifest, prettier/eslint on gated files, adversarial review workflows (3 rounds, brute-force placement sweeps of 57k–60k compiled worlds, zero bad tiles), and a live in-engine playtest on a seeded demo world. ## Out of scope (follow-ups) - **NPC schedules** on the `kind × standing` model (daypart templates, slowed package-local clock, cross-zone relocation) — next arc, design complete. - Class/wealth axis (dwelling quality, districts) — deferred layer. - Asset-generation revisit: NPC-spawns-on-object nudge, general object overlap. - Enterable facade shops (shops without a bound workshop place have no interior).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#207
No description provided.