The loop is stored twice — same artwork in both copies, different solidity bits. One bit in Sonic's status decides which copy his feet read.