Files
windroost/p2_godot_sample/artifacts/feedback_test.json
T
wushenghua eef7e14e6d feat: add centralized tiered feedback service with shake, hit-stop and pop
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.
2026-11-17 16:06:57 +08:00

34 lines
492 B
JSON

{
"kind": "windroost_feedback_test",
"overall": "PASS",
"problems": [],
"schema": 1,
"steps": [
{
"large": 1,
"medium": 1,
"small": 1,
"step": "tiers"
},
{
"after": "(120.0, 340.0)",
"base": "(120,340)",
"step": "shake_rest"
},
{
"hit_stop": false,
"shaking": false,
"step": "reduced_motion",
"time_scale": 1.0
},
{
"scale": "(1.0, 1.0)",
"step": "pop_rest"
},
{
"after": 1.0,
"during": 0.08,
"step": "clear_all"
}
]
}