@@ -144,6 +144,19 @@ and applies the emitted selection or assignment. Samples 57 and 58 use a small
144144general world-event queue and dedicated gameplay-interface assets before TAL
145145plays them at the runtime edge.
146146
147+ The hero's owned companion now comes from the retail companion tables and
148+ PARTNER archives instead of borrowing a town dog. A fixed six-row player owner
149+ keeps each type's level and experience, while the active profile supplies its
150+ name, movement speeds, life, resource, and draw strengths. The live actor uses
151+ the same integer collision query and cardinal edge controller as the player
152+ and PEOPLE actors, including dynamic actor blockers and retail's close, walk,
153+ run, and far-relocation distances. It starts inactive but still follows;
154+ Space, a controller shoulder button, or the exact bottom-left HUD strip toggles
155+ the authored active/inactive marker. Save loading restores the active type,
156+ all six progression rows, and the defeated countdown. Attacks, damage, death,
157+ revival, Moon, and swapping are intentionally left for their own gameplay
158+ slices.
159+
147160Choosing a retail save now restores more than its load-screen summary. The
148161` ShadowFlare0005 ` envelope is decoded and checksummed as a stream, so even a
149162large save never needs a second payload-sized buffer. The complete plain
@@ -240,8 +253,8 @@ it is invalid.
240253
241254## Current screen budgets
242255
243- The complete title currently uses 1,454,573 bytes of the 7 MiB main arena,
244- leaving 5,885,459 bytes free. Its screen-scoped artwork accounts for 1,101,182
256+ The complete title currently uses 1,458,533 bytes of the 7 MiB main arena,
257+ leaving 5,881,499 bytes free. Its screen-scoped artwork accounts for 1,101,182
245258bytes. The rest includes TWL/TAL state, game and screen metadata, persistent
2462598-bit menu music and effects, and one reusable 60,000-byte decode buffer. The
247260video pool contains only the 614,400-byte RGB555 framebuffer, leaving 3,579,904
@@ -254,22 +267,22 @@ nonblank case, all ten smoke streams together decode at most 57,864 bytes into
254267the same reusable buffer during one rendered frame.
255268
256269Character creation releases all title-only artwork before loading its own
257- assets. It uses 767,496 bytes of the main arena, leaving 6,572,536 bytes free;
270+ assets. It uses 771,456 bytes of the main arena, leaving 6,568,576 bytes free;
258271414,105 bytes of that total are character-screen artwork and font data. Shared
259272NJP parts are decoded only once even when several patterns reference them, and
260273a static character screen is not filled again until a visible state changes.
261274
262- The load-game screen uses 727,712 bytes of the main arena, leaving 6,612,320
275+ The load-game screen uses 731,672 bytes of the main arena, leaving 6,608,360
263276bytes free. Its screen-scoped artwork, font, and selected save preview account
264277for 374,321 bytes. Save headers stay in a fixed six-entry catalog, while only
265278the selected 391x114 thumbnail occupies memory. Changing selection decodes the
266279new preview into the same 89,148-byte RGB555 buffer; idle frames perform no
267280file access and do not refill the framebuffer.
268281
269- The complete Remote Town gameplay screen uses 5,423,692 bytes of the main
270- arena, leaving 1,916,340 bytes free. Its screen-owned scenario, script, map,
271- player, PEOPLE, ground-item, inventory-panel, equipment, and UI data and
272- artwork account for 5,070,301
282+ The complete Remote Town gameplay screen uses 6,744,124 bytes of the main
283+ arena, leaving 595,908 bytes free. Its screen-owned scenario, script, map,
284+ player, owned companion, PEOPLE, ground-item, inventory-panel, equipment, and
285+ UI data and artwork account for 6,386,773
273286bytes. GND rendering data is decoded directly from its compressed three-plane
274287stream into two bytes
275288per tile, so the 300x300 town grid occupies 180,000 bytes instead of retaining
@@ -321,6 +334,14 @@ The interpreter uses fixed temporary, persistent, quest, and 16-frame call
321334stack storage. Command semantics, operand access, and the resumable status loop
322335are separate small files rather than one growing interpreter source.
323336
337+ The owned companion is prepared just as narrowly. The active save row chooses
338+ one PARTNER resource, and its loader keeps only charts zero through two for the
339+ eight ordinary directions, deduplicating every referenced NJP and SDW pattern.
340+ That companion slice accounts for most of the latest gameplay increase, so the
341+ remaining 595,908-byte headroom is now a hard warning for upcoming combat and
342+ effect work: later slices must retire or stream existing screen data rather
343+ than quietly raising the arena limit.
344+
324345World pointer hit testing lives in ` ui/ ` , where the loaded sparse actor cells
325346are already available. It produces a small actor intent before each game
326347update; ` game/ ` owns the actual approach and distance rule. The common font is
@@ -337,7 +358,8 @@ the speaking actor. No renderer or target backend knows about script choices.
337358The bottom HUD follows that rule as well. ` data/table.c ` walks compressed or
338359plain retail parameter tables through a numeric callback without allocating a
339360database. ` game/player.c ` owns the selected starting values, while
340- ` ui/gameplay_hud.c ` composes the 18 currently required ` Bar.njp ` patterns.
361+ ` ui/gameplay_hud.c ` and ` ui/gameplay_companion_hud.c ` compose the 22 currently
362+ required ` Bar.njp ` patterns.
341363Only the active patterns and their 19 referenced parts are decoded. The
342364renderer remains unaware of gauges, levels, pace, or HUD hit areas.
343365
0 commit comments