Inventory packing

Weapons and supplies fill a gridded case in Resident Evil 4; a rifle occupies a long row with empty cells below.A long weapon occupies a row of cellsEmpty cells for new items
Resident Evil 4 (2023)Different weapon shapes in Leon’s case
  1. A long weapon occupies a row of cells
  2. Empty cells for new items
© Capcom; image via GameMechanics.org · Source ↗

Items occupy different amounts of space in a limited grid. The player moves and rotates them to make room for what matters.

Design tips

  • Preview item footprints and valid placement before moving them.
  • Offer automatic packing when rearrangement becomes routine.

Examples