Commit Graph
6 Commits
Author SHA1 Message Date
wushenghua 7be6bb53e5 art: true 4-frame idle breathing for H02/H03/H04/H06
"Then what?" — audited the most-watched animation: idle. H02-H06 had only a
single idle frame with a procedural scale-tween, while H01 and enemies had real
4-frame idle. Frame review of real auto-battle confirmed H01's pose subtly
shifts while the tween-only heroes look flatter. Generated true 4-frame idle
breathing loops for H02/H03/H04/H06 via gpt-image-2.6 (identity-anchored,
custom-rect chroma key, pack at fps=8 loop), downloaded with curl --noproxy.

Quality gate on the processed frames: H02/H03/H04/H06 had 0-4 magenta-fringe
pixels (clean) and were integrated. H05's generation produced ~1267 pink-fringe
pixels from its purple robe + generator spill; integrating it would downgrade
color quality versus the working single-frame + breathing tween, so it was
REJECTED and honestly recorded in the ledger's rejected list. This is why H05
keeps its single-frame idle.

breathing_test now also asserts H02 idle loops through distinct frames (14
stages). Provenance for both attack and idle generations preserved per hero.
Full gate P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 12:09:10 +08:00
wushenghua ee29482155 art: give H05 and H06 real 4-frame attacks (all 6 heroes now animated)
"Then what?" — audited the hero roster and found H05 (orc shadow, unlocks N03)
and H06 (beast guide, unlocks N10) were still single-frame attack, the last two
gaps in "characters feel alive". Both genuinely appear in battle.

Generated both 4-pose attack strips via gpt-image-2.6 with each hero's approved
idle as identity anchor + layout guide (H05 twin-dagger slash, H06 beast-staff
slam), downloaded with curl --noproxy. chroma_key_atlas.py custom rects ->
pack_animation_strip.py -> 384x96 atlases, 96px cells, foot_y=84, fps=10.
Tasks task_vFYEgjvjcUm1qnQlotNqgQBXVi2pD4Ha / task_ldEt3LmJ9dwdpQpZ4VtrqduFxVICQdJ0.

Replaced single-frame sources; provenance saved under PRODUCTION/source/sprite_runs/
H05/ and H06/; ledger hashes updated. breathing_test extended to H05/H06 (13
stages, frames advance). All 6 heroes + enemies/boss now have real 4-frame
animation. Docs 48/49/RELEASE_GOAL updated.

Full gate P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 11:21:48 +08:00
wushenghua b976aca6dc art: give H04 (dwarf forgemaster) a real 4-frame attack animation
Owner said "you decide the feature". Chose H04 attack frames: H01/H02/H03
already had real 4-frame attacks, but H04 (the first hero recruited at N02)
was still a static single frame — the one visible gap in "characters feel
alive". In scope, no gameplay balance change, no owner decision needed.

- Generated a 4-pose hammer-smash strip via gpt-image-2.6 with H04's approved
  idle as identity anchor + 4-slot layout guide (task_jK8QMFpRiOlJ1VfklPKFdQ6ayuw0E2yL),
  downloaded with curl --noproxy. chroma_key_atlas.py with custom per-pose rects
  (uneven spacing) -> pack_animation_strip.py -> 384x96 atlas, 96px cells,
  foot_y=84, fps=10, matching H04's runtime format.
- Replaced the single-frame H04 attack source; provenance saved under
  PRODUCTION/source/sprite_runs/H04/run/; ledger hashes updated.
- breathing_test now covers H04 attack (9 stages, frames 0/1/2/3 advance);
  hero_frame_for_test probe confirmed the forced frame applies to the live
  battle unit (forced=true, frame=2); p3a_h04_attack capture added.
- Docs updated: 48/49/RELEASE_GOAL now say H02+H03+H04 done, enemies remain.

Full gate P2_CHECKS_PASS. prototype/ untracked.
2026-11-18 05:22:23 +08:00
wushenghua b1238f4d8e art: give H03 (dragon mage) a real 4-frame attack animation
Continued Phase ASSET from RELEASE_GOAL.md using the proven H02 strip pipeline.

- Generated a 4-pose staff-cast strip via gpt-image-2.6 with H03's approved idle
  as identity anchor + 4-slot layout guide (task_GR7UULprR6kj7bT6I2X5j72qGcFrOxzF).
  The source came back 1536x1024 with poses at uneven x positions, so I used
  chroma_key_atlas.py with custom per-pose rects, then pack_animation_strip.py
  to a 384x96 atlas (96px cells, foot_y=84, fps=10) matching H03's runtime format.
- Replaced the single-frame H03 attack source; provenance saved under
  PRODUCTION/source/sprite_runs/H03/run/ (raw strip, frames, rects, prompt, task).
  Ledger updated with raw/runtime hashes.
- breathing_test now asserts H03 attack advances through distinct frames at
  runtime (8 stages pass); p3a_h03_attack_390_zh_CN.png shows the cast pose in
  a real battle (agent_visual_reviewed). Full gate P2_CHECKS_PASS.

Two of three starting heroes (H02, H03) now have real 4-frame attacks; H04 and
enemies remain single-frame (same pipeline, owner time/cost). prototype/ untracked.
2026-11-18 03:10:32 +08:00
wushenghua 7f1311bf87 art: give H02 a real 4-frame attack animation (image-gen pipeline)
Produced H02's first genuine multi-frame action animation via the established
H01 sprite pipeline, after the owner asked whether AI generation could make
characters feel more alive.

GIF route investigated first and rejected: the owner correctly diagnosed that
macOS system proxy (127.0.0.1:7897) caused the CDN download to truncate; with
curl --noproxy '*' the full file downloaded. But gpt-image-2.6-gif returned a
static 2x2 PNG with near-identical poses - worse than the existing breathing
tween for idle, so not adopted. Recorded in the ledger honestly.

Final method (reliable precedent): gpt-image-2.6 generated a 4-pose archer
strip (draw bow -> release -> recover) using H02's approved idle as identity
anchor and H01's 4-slot layout guide. chroma_key_atlas.py keyed magenta, split
4 frames and locked them to a shared foot line (y=747). pack_animation_strip.py
packed a 384x96 atlas at 96px cells, foot_y=84, fps=12 - byte-format identical
to H02's existing runtime atlas. Replaced the single-frame H02 attack source
(symlink resolves to the new atlas).

Provenance: raw strip, task manifest, 4 keyed frames and prompt saved under
PRODUCTION/source/sprite_runs/H02/run/; runtime manifest records task_id and
pipeline; generated_art_processing_ledger hashes updated.

Verification: breathing_test now asserts H02 attack advances through all 4
frames (0/1/2/3) at runtime (automated_verified); p3a_h02_attack_390_zh_CN.png
shows the hero in the drawn-bow pose in a real battle (agent_visual_reviewed).
Added a capture-only force_hero_attack_frame_for_test hook. Full gate
P2_CHECKS_PASS. prototype/ stays untracked and untouched.
2026-11-18 02:05:33 +08:00
wushenghua e25cf9623b art: replace all placeholder sprites with generated pixel art
Generated 26 sprite sheets (13 characters x idle/attack-or-hit) with
gpt-image-2.6 1K using one shared style contract and a magenta chroma
background, replacing the deterministic placeholder silhouettes. Dry-run and
credential preflight were done first; the batch used --no-wait with task ids
written to disk, then a single collect. Two downloads needed recovery: one
returned .webp (converted to PNG, bytes preserved), one failed twice and was
resubmitted from the same job, succeeding. Failed tasks are not charged.

Each raw sheet went through the project's existing pixel pipeline:
pixel_sprite_pack.py (crop + fixed 96px grid) then chroma_key_atlas.py
(chroma key + foot-line alignment). The runtime atlases and manifests are
byte-compatible with UnitView, so no runtime code changed. data/generated_art_processing_ledger.json records every task id and both raw and
runtime SHA-256 hashes. Manifests are marked generated_reviewed_pipeline and
still require human visual sign-off before release; this is a first draft,
not a claim of final art acceptance.

tools/run_p2_checks.sh still runs 16 gates; all pass. Battle captures show
distinct heroes (human warrior, elven ranger, dwarf smith) instead of blocks.
2026-11-17 09:17:01 +08:00