SpriteSource::size (and ::width ::height) properties misleading
Posted: Thu Feb 19, 2026 10:52 am
For AnimationPrototype::size (and ::width and ::height) it clearly states "Height of one frame in pixels". It is clear that one frame (e.g. 64x64) should be provided, not the size of the whole picture.
This is unfortunately not the case for SpriteSource::size. It states "Width of the picture", indicating the whole ".png" file is meant which is not the case. This is quite misleading.
This is unfortunately not the case for SpriteSource::size. It states "Width of the picture", indicating the whole ".png" file is meant which is not the case. This is quite misleading.