Sprite Production Field Notes

sprite sheet maker

Size a Solarus HUD surface from its compositing role

A temporary tile surface can silently turn into a whole screen of transparent pixels. This happens in Solarus when a new surface is created without width and height, since the default is the logical quest size. A loaded image instead keeps its native dimensions. A reusable HUD cache should declare which of those sizes each item needs.

Inspect the tile before placing it

Make an asymmetric eight-by-five diagnostic icon with a bright pixel in its bottom-right corner. Compose it into a small status tray through the same intermediate allocator used by production UI. Record the tile’s actual size, then place the tray at a fixed screen coordinate and check the corner pixel against the expected position. Repeat while changing the logical quest size in the test quest.

The tile dimensions and local anchor should stay the same across those cases. A separate full-screen overlay can deliberately follow the quest size. Give the allocator a named path for each role and validate tile dimensions before caching the result. This also catches callers that allocate one size and later assume the dimensions come from the source PNG. FrameSprite’s technical guide and test fixture walks through the three native surface sizes.

Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.