3 ms·
Nothing 'wrong', but the reason for the multiples of 8 was likely because sprites back then needed masks so that they could handle 'holes' properly. This was in
by AimHere 10y ago
Nothing 'wrong', but the reason for the multiples of 8 was likely because sprites back then needed masks so that they could handle 'holes' properly. This was in the days before alpha channels, so there'd be spritemask instead - essentially a 2-colour sprite that acted like a single-bit alpha channel.
And if your sprite is a multiple of 8-pixels wide, then your spritemask takes up a whole-number of bytes, you can do funky low-level bit-twiddling to handle occlusions and it's more efficient in terms of memory space.