Skip to content

Curiosity: How does Spirit's XML (or I guess TXT) work? #3938

Discussion options

You must be logged in to vote

Those aren't offsets but rather frame data (basically a substitute for the .xml file for spirit, made much simpler than an .xml file as this doesn't account for frame offsets unlike an .xml file). The string before the equals sign is the name of the frame, and the data after the equals sign is:

Number 1: The X-Position of the Frame, in Pixels
Number 2: The Y-Position of the Frame, in Pixels
Number 3: The Width of the Frame, in Pixels
Number 4: The Height of the Frame, in Pixels

so to analyze, for instance, line 21 spirit down_0 = 0 0 256 256 it loads the frame with the name spirit down_0 at (0, 0) with the size 256x256 pixels

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@KoloInDaCrib
Comment options

Answer selected by KadePleaseHelpMe
@KadePleaseHelpMe
Comment options

@KoloInDaCrib
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants