Curiosity: How does Spirit's XML (or I guess TXT) work? #3938
Answered
by
KoloInDaCrib
KadePleaseHelpMe
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
KoloInDaCrib
Dec 16, 2024
Replies: 1 comment 3 replies
-
offsets from what I understand, it works like every other characters offsets but his is in an txt file for some reason (likely due to him being pixel or some shit I don't know) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 namespirit down_0
at(0, 0)
with the size256x256
pixels