Files
anm2ed/tests/golden/10_paths.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

75 lines
3.4 KiB
XML

<AnimatedActor>
<Info CreatedBy="fixture" CreatedOn="01/01/2026 12:00:00 PM" Fps="30" Version="2"/>
<Content>
<Spritesheets>
<Spritesheet Id="0" Path="gfx\characters\costumes\body.png"/>
<Spritesheet Id="1" Path="ünïcödé/スプライト.png"/>
<Spritesheet Id="2" Path="../up one/space name.png"/>
<Spritesheet Id="3"/>
</Spritesheets>
<Layers>
<Layer Id="0" Name="Ëmoji 🙂 &amp; &lt;xml&gt; &quot;q&quot;" SpritesheetId="1"/>
</Layers>
<Nulls/>
<Events>
<Event Id="0" Name="événement"/>
</Events>
</Content>
<Animations DefaultAnimation="Ånim">
<Animation Name="Ånim" FrameNum="4" 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="0.5" YPosition="-0.25" Delay="4" Visible="true" XScale="33.333" YScale="66.667" Rotation="359.98999" Interpolated="false"/>
</LayerAnimation>
</LayerAnimations>
<NullAnimations/>
<Triggers>
<Trigger EventId="0" AtFrame="1"/>
</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="gfx\characters\costumes\body.png"/>
<Spritesheet Id="1" Path="ünïcödé/スプライト.png"/>
<Spritesheet Id="2" Path="../up one/space name.png"/>
<Spritesheet Id="3"/>
</Spritesheets>
<Layers>
<Layer Id="0" Name="Ëmoji 🙂 &amp; &lt;xml&gt; &quot;q&quot;" SpritesheetId="1"/>
</Layers>
<Nulls/>
<Events>
<Event Id="0" Name="événement"/>
</Events>
<Sounds>
<Sound Id="0" Path="sfx\boom.wav"/>
<Sound Id="1" Path="音/鳴る.ogg"/>
</Sounds>
</Content>
<Animations DefaultAnimation="Ånim">
<Animation Name="Ånim" FrameNum="4" 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>
<LayerAnimation LayerId="0" Visible="true">
<Frame XPivot="8" YPivot="8" XCrop="0" YCrop="0" Width="16" Height="16" XPosition="0.5" YPosition="-0.25" Delay="4" Visible="true" XScale="33.333" YScale="66.667" SkewX="0" SkewY="0" Rotation="359.98999" Interpolated="false"/>
</LayerAnimation>
</LayerAnimations>
<NullAnimations/>
<Triggers>
<Trigger EventId="0" AtFrame="1">
<Sound Id="1"/>
</Trigger>
</Triggers>
</Animation>
</Animations>
</SourceDocument>
</AnimatedActor>