Skip to content

Refactor and extend SpriteInfo

Lactozilla requested to merge spriteinfo-refactor into next

This PR ports the new Default block and the * wildcard added for Ring Racers. Additionally, support for frame ranges and numeric frames has been added.

SpriteInfo SOC has not been adjusted and is considered deprecated as of this PR.

TODO: Write documentation and examples here

Backwards compatibility note

Currently, when using PivotX or PivotY, any other frames that do not have a pivot defined default to X: 0, Y: 0. This discrepancy is kept in this PR when using PivotX and PivotY, or spriteinfo.pivot in Lua - by mapping the undefined frames to the Default block, or to X: 0, Y: 0 - but may be avoided by using RotationPivotX and RotationPivotY instead, or spriteinfo.frames[index].pivot in Lua.

Edited by Lactozilla

Merge request reports

Loading