All field notes
Field notes · 6 December 2026How to import crisp pixel-art inventory icons
Build a sharp game inventory without blurry sprites or cropped atlas cells.
Keep the original canvas on import
Leave transparent margins on each icon so all cells line up. A 24×24 icon that shows only a 17×15 subject is still a 24×24 tile. Import a single PNG first and confirm the anchor point before filling the rest of the menu.
Test integer scaling
A 24×24 icon becomes 48×48 at 2× and 72×72 at 3×. Use the equivalent of nearest-neighbour filtering in your engine and compare against the default at actual game window size. Fractional scaling can give uneven pixel widths even with smoothing off.
Check the whole matrix
For a sheet with N columns, the zero-based index i is in column i mod N and row floor(i divided by N). Use the sheet layout file or the actual rectangle coordinates when gutters or margins exist. Open the final scene on a light and a dark background to catch halos.
Do a two-item dry run
Import one tall icon and one wide icon. Put them in adjacent inventory slots, then test selected and muted states. Fix padding or contrast once in the slot template, not separately for thirty sprites.