tge-was-taken / Amicitia

Editor for file formats used in Atlus' Persona games
74 stars 16 forks source link

Implemented sprite coordinates. #2

Closed MaikelChan closed 6 years ago

MaikelChan commented 7 years ago

Hey!

I've implemented sprite coordinates that represent an area inside a texture. They are located in each "Keyframe" at those ints that were mistakenly thought to be something animation related. They can be edited in case the user wants to edit the layout of the elements of a texture.

Is it confirmed that those Keyframes can actually can contain something related to animation? For now it looks like a container of multiple sprite data with a reference to a texture. I was really confused at first with the term Keyframe being used. If it that were the case, maybe would be better to use the term Sprite instead of Keyframe?

Greetings!

tge-was-taken commented 7 years ago

I'm assuming you tested this ingame? I figured the SPR contained sprite bitmaps & sprite animation data, which is why Keyframe was used -- as in, I thought each entry was a keyframe in a sprite animation.

MaikelChan commented 7 years ago

Yes, it has been tested on P3, although not P4.

I'm helping on some things for a spanish translation translation project for P3, and several text sprites are located in atlases. And we can change those coordinates in case a text is bigger or shorter when translated. With some of those atlases is easy to check how those values correspond to the corners of a rectangle that surrounds a word.