Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple bitmask calculation example for tiles
ushort bitMaskValue = left * 8 + down * 4 + right * 2 + up * 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment