The boxes can have a resistance level to damage.
Once that level reaches 0 - the box becomes breakable.
When the Durability of the box is 0 or less
AND the Hit animation is NOT playing
Play an assoicated sound effect.
Once Durability is <= 0 AND Hit is NOT playing:
Repeat the following code 4 times:
Spawn the broken box sprite
Set the current frame to the current loop number
Apply physics to send pieces in random directions
Destroy the broken pieces