Files
anm2ed/tests/golden/04_group_root_transform.save.xml
T
shweetandClaude Opus 5.5 8ef089d306 Isaac compatibility: Convert and Save bridges what the game can't show
The Isaac prompt offers Convert and Save, Ignore and Save, or Cancel; the
document remembers the choice (IsaacIgnored / "isaacIgnored", editor-only)
for saves that don't ask (the warning off, or `convert`). Converting:
- depth: a copy of the layer per depth ("body (depth +1)"), standing where
  the editor draws it and showing only that depth's frames
- alpha offsets join the alpha tint (the same on opaque pixels)
- skew, blur and shaders: each layer frame using one is drawn alone at 1x
  into <name>.baked.png beside the save (each image once), on a copy of its
  layer ("body (baked)") right after it, one frame per step; a skewed root
  or group root goes into its layers' images. `convert` makes a headless
  OpenGL context for it; without one (or if the sheet can't be written)
  these are dropped with a warning. Autosaves don't bake.
Tests check the bridged copy draws as the editor does, frame by frame.

Purge Default Color Values is gone: XML saves always leave out tints of 255
and color offsets of 0, in both copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 22:59:35 -04:00

118 lines
10 KiB
XML

<AnimatedActor>
<Info CreatedBy="fixture" CreatedOn="01/01/2026 12:00:00 PM" Fps="30" Version="2"/>
<Content>
<Spritesheets>
<Spritesheet Id="0" Path="sheet.png"/>
</Spritesheets>
<Layers>
<Layer Id="0" Name="a" SpritesheetId="0"/>
<Layer Id="1" Name="b" SpritesheetId="0"/>
<Layer Id="2" Name="c" SpritesheetId="0"/>
</Layers>
<Nulls>
<Null Id="0" Name="n0"/>
<Null Id="1" Name="n1"/>
</Nulls>
<Events/>
</Content>
<Animations DefaultAnimation="A">
<Animation Name="A" FrameNum="8" Loop="true">
<RootAnimation>
<Frame XPosition="0" YPosition="0" Delay="4" Visible="true" XScale="100" YScale="100" Rotation="0" Interpolated="false"/>
</RootAnimation>
<LayerAnimations>
<LayerAnimation LayerId="0" Visible="true">
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="10" YPosition="13" Delay="1" Visible="true" XScale="200" YScale="50" GreenTint="128" AlphaTint="200" Rotation="90" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="7.6787839" YPosition="10.217156" Delay="1" Visible="true" XScale="175" YScale="62.5" GreenTint="159" AlphaTint="213" Rotation="67.5" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="4.2426405" YPosition="6.7426405" Delay="1" Visible="true" XScale="150" YScale="75" GreenTint="191" AlphaTint="227" Rotation="45" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="-0.38060236" YPosition="3.1634173" Delay="1" Visible="true" XScale="125" YScale="87.5" GreenTint="223" AlphaTint="241" Rotation="22.5" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="-10" YPosition="4" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="0" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="-10" YPosition="4" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="0" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="-10" YPosition="4" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="0" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="-10" YPosition="4" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="0" Interpolated="false"/>
</LayerAnimation>
<LayerAnimation LayerId="1" Visible="true">
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="9.5" YPosition="7" Delay="1" Visible="true" XScale="200" YScale="50" GreenTint="128" AlphaTint="200" Rotation="90" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="5.0922713" YPosition="5.6059661" Delay="1" Visible="true" XScale="175" YScale="62.5" GreenTint="159" AlphaTint="213" Rotation="67.5" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="0.53033006" YPosition="4.0909901" Delay="1" Visible="true" XScale="150" YScale="75" GreenTint="191" AlphaTint="227" Rotation="45" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="-4.1799984" YPosition="2.5367489" Delay="1" Visible="true" XScale="125" YScale="87.5" GreenTint="223" AlphaTint="241" Rotation="22.5" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="-9" YPosition="1" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="0" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="-9" YPosition="1" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="0" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="-9" YPosition="1" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="0" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="-9" YPosition="1" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="0" Interpolated="false"/>
</LayerAnimation>
<LayerAnimation LayerId="2" Visible="true">
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="0" YPosition="0" Delay="4" Visible="true" XScale="100" YScale="100" Rotation="0" Interpolated="false"/>
</LayerAnimation>
</LayerAnimations>
<NullAnimations>
<NullAnimation NullId="0" Visible="true">
<Frame XPosition="3.7320509" YPosition="5.7320509" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="30" Interpolated="false"/>
<Frame XPosition="3.7320509" YPosition="5.7320509" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="30" Interpolated="false"/>
<Frame XPosition="3.7320509" YPosition="5.7320509" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="30" Interpolated="false"/>
<Frame XPosition="3.7320509" YPosition="5.7320509" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="30" Interpolated="false"/>
<Frame XPosition="3.7320509" YPosition="5.7320509" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="30" Interpolated="false"/>
<Frame XPosition="3.7320509" YPosition="5.7320509" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="30" Interpolated="false"/>
<Frame XPosition="3.7320509" YPosition="5.7320509" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="30" Interpolated="false"/>
<Frame XPosition="3.7320509" YPosition="5.7320509" Delay="1" Visible="true" XScale="100" YScale="100" Rotation="30" Interpolated="false"/>
</NullAnimation>
</NullAnimations>
<Triggers/>
</Animation>
</Animations>
<SourceDocument>
<Info CreatedBy="fixture" CreatedOn="01/01/2026 12:00:00 PM" Fps="30" Version="2"/>
<Content>
<Spritesheets>
<Spritesheet Id="0" Path="sheet.png"/>
</Spritesheets>
<Layers>
<Layer Id="0" Name="a" SpritesheetId="0"/>
<Layer Id="1" Name="b" SpritesheetId="0"/>
<Layer Id="2" Name="c" SpritesheetId="0"/>
</Layers>
<Nulls>
<Null Id="0" Name="n0"/>
<Null Id="1" Name="n1"/>
</Nulls>
<Events/>
</Content>
<Animations DefaultAnimation="A">
<Animation Name="A" FrameNum="8" Loop="true">
<RootAnimation>
<Frame XPosition="0" YPosition="0" Delay="4" Visible="true" XScale="100" YScale="100" SkewX="0" SkewY="0" Rotation="0" Interpolated="false"/>
</RootAnimation>
<LayerAnimations>
<Group Name="Arm" IsExpanded="true" Visible="true">
<RootAnimation>
<Frame XPosition="10" YPosition="5" Delay="4" Visible="true" XScale="200" YScale="50" SkewX="0" SkewY="0" GreenTint="128" AlphaTint="200" Rotation="90" Interpolated="true"/>
<Frame XPosition="-10" YPosition="0" Delay="4" Visible="true" XScale="100" YScale="100" SkewX="0" SkewY="0" Rotation="0" Interpolated="false"/>
</RootAnimation>
<LayerAnimation LayerId="0" Visible="true">
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="4" YPosition="0" Delay="4" Visible="true" XScale="100" YScale="100" SkewX="0" SkewY="0" Rotation="0" Interpolated="false"/>
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="0" YPosition="4" Delay="4" Visible="true" XScale="100" YScale="100" SkewX="0" SkewY="0" Rotation="0" Interpolated="false"/>
</LayerAnimation>
<LayerAnimation LayerId="1" Visible="true">
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="1" YPosition="1" Delay="8" Visible="true" XScale="100" YScale="100" SkewX="0" SkewY="0" Rotation="0" Interpolated="true"/>
</LayerAnimation>
</Group>
<LayerAnimation LayerId="2" Visible="true">
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="0" YPosition="0" Delay="4" Visible="true" XScale="100" YScale="100" SkewX="0" SkewY="0" Rotation="0" Interpolated="false"/>
</LayerAnimation>
</LayerAnimations>
<NullAnimations>
<Group Name="NullGroup" IsExpanded="true" Visible="true">
<RootAnimation>
<Frame XPosition="3" YPosition="3" Delay="8" Visible="true" XScale="100" YScale="100" SkewX="0" SkewY="0" Rotation="30" Interpolated="false"/>
</RootAnimation>
<NullAnimation NullId="0" Visible="true">
<Frame XPosition="2" YPosition="2" Delay="4" Visible="true" XScale="100" YScale="100" SkewX="0" SkewY="0" Rotation="0" Interpolated="false"/>
</NullAnimation>
</Group>
</NullAnimations>
<Triggers/>
</Animation>
</Animations>
</SourceDocument>
</AnimatedActor>