Documents can be saved as the editor's own JSON (Save as JSON, in Configure's
Serialization row, off by default) and any .anm2 starting with '{' opens as
one. The schema is new, not an XML mirror: content items in arrays (an item's
index is its id), animations keyed by unique name (a repeat saves as "Name 2"),
groups nested, paired values as arrays, a frame on a region storing only the
region, ISO 8601 dates, every default left out, and one line per frame and
content item, with anything else that fits in 100 columns on one line. Unknown
XML isn't kept. Each part is described once (frame_io, track_io, model_io...)
and run by a JsonWriter or a JsonReader; simdjson parses (new submodule). A
JSON file that opens but has unknown keys, wrong types, unknown values or bad
indices lists them by location in a warning toast; libraries toast their load
problems too. With Save as JSON on, saving always shows the Isaac warning.
The extended format is gone: no setting, File menu toggle, ExtendedVersion or
isExtendedFormat. XML saves are always the game's copy with SourceDocument;
old extended files still open. Document saves take Options instead of loose
bools, and model_load reads through model_load_string. docs/json_format.md
replaces docs/extended_format.md; goldens lose ExtendedVersion and the
.extended variants.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
2.5 KiB
XML
43 lines
2.5 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="4" Loop="true">
|
|
<RootAnimation>
|
|
<Frame XPosition="0" YPosition="0" Delay="4" Visible="true" XScale="100" YScale="100" SkewX="0" SkewY="0" RedTint="255" GreenTint="255" BlueTint="255" AlphaTint="255" RedOffset="0" GreenOffset="0" BlueOffset="0" Rotation="0" Interpolated="false"/>
|
|
</RootAnimation>
|
|
<LayerAnimations>
|
|
<Group Name="Main" IsExpanded="true" Visible="true">
|
|
<RootAnimation>
|
|
<Frame XPosition="0" YPosition="0" Delay="1" Visible="true" XScale="100" YScale="100" SkewX="0" SkewY="0" RedTint="255" GreenTint="255" BlueTint="255" AlphaTint="255" RedOffset="0" GreenOffset="0" BlueOffset="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="1" YPosition="2" Delay="4" Visible="true" XScale="100" YScale="100" SkewX="0" SkewY="0" RedTint="255" GreenTint="255" BlueTint="255" AlphaTint="255" RedOffset="0" GreenOffset="0" BlueOffset="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="3" YPosition="4" Delay="4" Visible="true" XScale="100" YScale="100" SkewX="0" SkewY="0" RedTint="255" GreenTint="255" BlueTint="255" AlphaTint="255" RedOffset="0" GreenOffset="0" BlueOffset="0" Rotation="0" Interpolated="false"/>
|
|
</LayerAnimation>
|
|
</Group>
|
|
</LayerAnimations>
|
|
<NullAnimations>
|
|
<NullAnimation NullId="1" Visible="true"/>
|
|
</NullAnimations>
|
|
<Triggers/>
|
|
</Animation>
|
|
</Animations>
|
|
</AnimatedActor>
|