From 7387f2406a7909dd89e7d8fe295c0ef471daccdb Mon Sep 17 00:00:00 2001 From: Orkuncakilkaya Date: Tue, 29 Sep 2026 18:12:55 +0300 Subject: [PATCH] ludic.npc: the package's two acts (walk, idle) are rows of acts.lres, not defs in code - still first, so NPCA_WALK is 0 and NPCA_IDLE 1 Co-Authored-By: Claude Opus 5.5 --- packages/ludic.npc/README.md | 2 +- packages/ludic.npc/acts.lres | 4 ++++ packages/ludic.npc/defs.ludic | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 packages/ludic.npc/acts.lres diff --git a/packages/ludic.npc/README.md b/packages/ludic.npc/README.md index dc46f886..8ccd0dfd 100644 --- a/packages/ludic.npc/README.md +++ b/packages/ludic.npc/README.md @@ -29,7 +29,7 @@ game's too (`NpcAct.clip` is a hint: `"walk"`, `"idle"`, or `""` for a pose of i - **`NpcSpots`** - where a step goes; `find(p, step)` sends the person (`npc_go` / `npc_do`, or `npc_step_go`) or says it cannot. The package's own: `here`, `home`, `near_home`, `near_here`, `shore_home`, `shore_here` (facing the water) and `wander`; a game adds its own (a sign, an animal). -- **`NpcActs`** - what somebody does; the package's `walk` (`NPCA_WALK`) and `idle` come first. +- **`NpcActs`** - what somebody does; the package's `walk` (`NPCA_WALK`) and `idle` come first, from `acts.lres`. `turns` (false: keeps its eyes on its work), `clip`, and `tick(p, dt)` (the game's while it lasts; true: decided). - **`NpcNames`** (`name`, `body`) and **`NpcLines`** - see below. diff --git a/packages/ludic.npc/acts.lres b/packages/ludic.npc/acts.lres new file mode 100644 index 00000000..107957bc --- /dev/null +++ b/packages/ludic.npc/acts.lres @@ -0,0 +1,4 @@ +# acts.lres - the package's own acts, first in NpcActs so NPCA_WALK is 0 and NPCA_IDLE 1; a game's +# acts are appended after them (`def NpcActs from ...`) +walk { clip: "walk" } +idle { clip: "idle" } diff --git a/packages/ludic.npc/defs.ludic b/packages/ludic.npc/defs.ludic index 7b68f956..4bdf8d29 100644 --- a/packages/ludic.npc/defs.ludic +++ b/packages/ludic.npc/defs.ludic @@ -121,8 +121,7 @@ export property NpcAct { } export open registry NpcActs of NpcAct as NPCA -def NpcActs walk { clip: "walk" } -def NpcActs idle { clip: "idle" } +def NpcActs from "acts.lres" # a name somebody can have; `body` the game's (a pool per model), so a Nora is drawn as a woman export property NpcName {