Allen

  • il y a 8 heures
  • Inscrit 21 nov. 2024
  • +1 for oxipng, which beats Xcode's pngcrush based mangling by miles.

  • Spine outputs standard PNGs that match the PNG specification, so I don't think a special extension is warranted. That said, you could rename the PNG files if you wanted that.

    Skeleton data is separate from the atlas by design: users can choose an atlas from many at runtime (eg different sizes based on user screen resolution), pack an atlas that contains multiple skeletons or contains regions for both skeletons and non-skeleton app needs, pack their own atlas either beforehand or at runtime (eg based on a player's equipped items, for games that have more assets than fit on a single atlas page), use the data without any atlas at all (eg use bone positions to position UI, or render SVG, etc), and other use cases.

    Spine has a Pack checkbox when exporting data solely for convenience. You can run the packer separately and it often makes sense to do that, for example to pack an atlas containing images for multiple skeletons.

    The best solution IMHO is oxipng and disable Xcode's mangling.