Skip to content

Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.

style(spec): the space after states = in load_asset's rows branch, dropped with the SET_SHEET_KIND edit

Soohong Kim318005d7f17e
diff --git a/sprite_gen/spec/assets.py b/sprite_gen/spec/assets.py
index f477e3b..981bdd6 100644
--- a/sprite_gen/spec/assets.py
+++ b/sprite_gen/spec/assets.py
@@ -238,7 +238,7 @@ def load_asset_states(source: Path, *, state=None, fps=None, anchor=None) -> dic
if "frame_layout" in data:
states = list(data["frame_layout"]["rows"])
elif data.get("kind") == SET_SHEET_KIND:
- states =[row["code"] for row in data["rows"]]
+ states = [row["code"] for row in data["rows"]]
elif isinstance(data.get("rows"), list) and "cell" in data:
states = data["rows"]
if not states or len(set(states)) != len(states):