Implemented the three improvements the owner approved after reviewing the
screenshots. Kept the visual evidence levels honest: layout/reward/breathing
behaviour is automated_verified, the style judgment is agent_visual_reviewed,
and whether it is actually appealing/comfortable stays a human gate.
1 - immersive battle layout (battle_hud.gd, ui_theme.gd): the backdrop now
covers the full screen instead of living only inside the stage; six HUD
regions use a translucent UiTheme.glass_panel (dark + top border) instead
of gold frames, and the stage drops its second background and frame to
become a transparent interaction layer. Region coordinate contract is
UNCHANGED (REFERENCE_RECTS intact, capture matrix green at 390/360/430,
zh/en). Fixed a real parse error found during review: Side.TOP -> SIDE_TOP.
2 - reward celebration (game_root.gd): victory now runs a dedicated row with a
coin icon, a number rolling from 0 to gold (0.6s ease-out) and an icon pop;
reduced motion shows the final value immediately. Body copy changed to the
new shell.victory.celebrate key so it does not duplicate the number. The
capture runner drives BattleScene (old path), so reward_celebration_test.gd
drives GameRoot's external-progress path - observed +2 -> +30 roll and a
direct +30 under reduced motion.
3 - idle breathing (unit_view.gd): the 13 single-frame characters no longer
look static. An eased looping 2.5% sprite squash starts on idle, stops on
non-idle, resumes on return, and is disabled/reset under reduced motion with
_exit_tree cleanup. Hero 0.82 node scale/modulate composes with the sprite
tween without conflict.
Added two focused gates (run_breathing_test.sh, run_reward_celebration_test.sh)
registered in run_p2_checks.sh. breathing_test proves the tween actually runs
in the real configure-before-tree path (scale 1.0004 -> 1.0086), stops on
attack, resumes on idle, and respects reduced motion. Full gate P2_CHECKS_PASS
with clean log audit. Docs 44/46 record the outcomes, evidence levels and the
still-open human/device gates. prototype/ remains untracked and untouched.
Responded to "looks too plain / not like a game" with a concrete audit and a
bounded fix, plus an honest look at the GIF suggestion.
Visual judgment recorded in PRODUCTION/46: the current look is a CH-style dark
gold dashboard - clear but admin-panel-like. Map nodes were ten identical
gold boxes with no type distinction. Each node now carries a type icon (sword
/ shield / question / flag), a coloured type label with number (normal/elite/
event/boss), and a cleared state (mint + desaturated + disabled). An attempted
whole-row colour tint was rejected during review (PanelContainer stretched the
ColorRect across the row and hurt contrast); removed in favour of icon+label.
GIF: verified facts - the four GIFs in the repo are H01 QA previews only, zero
runtime use; runtime animation is sprite atlas + frame index, and 13 characters
have ONE frame per state, which is the real reason they look static. GIF is not
a game runtime format. The correct route (AI GIF as generation medium -> split
frames -> foot-aligned atlas -> runtime playback) was technically validated: a
text-only prompt failed E4003 (no charge); retrying with --image reference
succeeded and returned a valid H02 idle GIF matching the existing art style.
CDN download was too unstable/truncated to integrate, so this is recorded as a
verified-but-not-adopted route, not claimed as implemented.
tools/run_p2_checks.sh still passes all 27 gates with clean logs. Visual verdict
stays agent_visual_reviewed - whether the style is appealing and motion feels
good still needs the owner to look and play.
Owner chose option B (use AI-generated UI art) and reported the screen looked
too plain. Root cause: frames were flat 6px solid gold lines and resource icons
were generic glyphs (diamond/star).
Followed the two-stage boundary required by AGENTS.md: AI output is a STYLE
REFERENCE, never a runtime asset. gpt-image-2.6 produced a beveled panel frame
board and a 4x4 icon sheet on magenta (dry-run and credential preflight first,
task ids in the ledger). tools/derive_ui_from_references.py then redrew on an
exact low-res grid: 48x48 NinePatch frames with top/left highlight, bottom/
right shadow and corner notches; icons chroma-keyed, palette-quantized and
BOX-downsampled to 32x32 (16px lost too much detail).
check_ui_pixel_art.py enforces the boundary (exact logical size, <=12 colors,
transparent NinePatch corners, provenance status) and caught a real regression:
corner nubs drawn at (0,0) made corners opaque; fixed. Resource bar now uses
derived gold/crystal icons instead of text glyphs.
Normal-render captures show beveled frames and legible icons. 27 gates pass,
including parity, pacing, feedback, log audit and the full capture matrix.
PRODUCTION/45 records provenance and the honest limits: only 2 of 16 icons are
wired in, and human visual sign-off is still required (derived != final art).
PRODUCTION/44 named a next falsifying test: at the busiest representative
state (five enemies plus a flooded damage-number pool), does feedback still
avoid priority state values? Implemented run_busy_state_test.sh with a
geometric probe over every live floating number against all enemy plates,
timer bar and manual controls, plus a real-render capture.
The first attempt at fanning stacked numbers (vertical stagger) actually
pushed them INTO the nameplate band (167px^2 overlap); the geometric test
caught it and I reverted to a sprite-above band with horizontal drift only.
The authoritative anti-goal is covering state values (HP/shield/countdown/
buttons), not the sprite itself, so numbers over the sprite are correct.
Final result: 0px^2 overlap with 16 numbers live, pool capped, reduced-motion
propagates. The busy capture was agent-visually reviewed: focus stays on the
enemy target and its plate stays readable.
tools/run_p2_checks.sh now runs 26 gates; all pass, including parity, pacing,
feedback, log audit and the full capture matrix. Honest open item: stacked
numbers in synchronous injection still cluster; real feel needs a human
recording.
Answered the UI/game-feel question with implementation, not just advice. The
previous hit feedback was two or three channels scattered across BattleScene
and BattleHud, with no tiering and no central accessibility handling.
FeedbackService (autoload `Feedback`) now turns committed authoritative events
into presentation-only feedback: decaying trauma shake on a visual-only pivot
(sine-sum, never per-frame randf), a centralized hit-stop that extends one
deadline across concurrent hits and restores the pre-effect time_scale, and a
replaceable UI pop tween. Events are tiered small/medium/large so routine
clicks stay quieter than shield breaks and ultimates.
Authority boundary: feedback is requested only after the sim commits; the
service never touches economy, combat, save, reward or timing truth. Reduced
motion fully suppresses shake/hit-stop, low power scales them down, and
clear_all returns every effect to rest on scene change or settings change.
Shake targets BattleHud's visual stage container, never a simulated unit.
feedback_test proves tier mapping, exact shake rest position, reduced-motion
suppression, pop rest, and time_scale restore from 0.08 to 1.0. Crucially the
300-result parity, 1x/2x/3x equivalence and five-profile pacing all still
pass: hit-stop changes presentation time, not tick progression. The log audit
is clean, and a real Godot window with a boss battle rendered without errors
or a stuck time_scale. tools/run_p2_checks.sh now runs 25 gates; all pass.
PRODUCTION/43 records the design, the authority boundary, and the honest
limits: feel, comfort and timing still need real input and human review.
Continues the MVP work from the UI and numbers baseline.
Animation. The frame runs were already in the repository but had never been
packed for runtime use. pack_animation_strip.py now derives one shared scale
and one shared foot line from the union of every frame in a state, so the
character does not jitter between frames; H01 idle/attack, EG01 idle/hit and
B01 idle/hit are packed as transparent fixed-grid atlases. UnitView plays
them with the node origin on the foot line, loops idle, plays hit once and
falls back, and flashes on damage. Content-to-art bindings live in the
content fixture, so no character id is hardcoded in the HUD.
Touch. The previous HUD used gui_input callbacks, which is not proof of a
mobile input path. run_touch_test.sh now feeds InputEventScreenTouch through
Input.parse_input_event and checks that taps on the tap toggle, an enemy card
and the storm button produce the right events on the right tick. It also
caught a real bug: Godot emulates mouse presses from touches, so one tap was
firing both handlers; enemy taps are now debounced.
Economy. The paper model had the reward and upgrade curves but the runtime
only subtracted gold from a balance that was always zero. The scene now owns
permanent progress: victory grants the reward from the shared rules, upgrades
cost a growing amount, hero DPS rises per level, and the next battle is
created with the upgraded roster DPS. run_economy_loop_test.sh proves four
N01 clears pay for the first upgrade and that duplicate grants and losses
behave correctly. The economy pacing was left at four wins rather than
weakening it to satisfy the test.
tools/run_p2_checks.sh now runs 11 gates; all pass. PRODUCTION/38 records
P2-IMP-02/03 and P2-BAT-02 as PASS. Remaining P2 holds: profiler/visual
limit, shield-break and ultimate VFX, real-device safe area and performance.