Skip to content

Instantly share code, notes, and snippets.

@MrChrisHammond
Created September 5, 2018 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrChrisHammond/fab4fd64473ac521679d91b53d2234e0 to your computer and use it in GitHub Desktop.
Save MrChrisHammond/fab4fd64473ac521679d91b53d2234e0 to your computer and use it in GitHub Desktop.
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