Created
September 21, 2013 18:27
-
-
Save kf4x/6652928 to your computer and use it in GitHub Desktop.
Data structures to represent a Tetris piece.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 16bit representation (convert hx to bin to see block) | |
| i = [0x0F00, 0x2222, 0x00F0, 0x4444] | |
| j = [0x44C0, 0x8E00, 0x6440, 0x0E20] | |
| l = [0x4460, 0x0E80, 0xC440, 0x2E00] | |
| o = [0xCC00, 0xCC00, 0xCC00, 0xCC00] | |
| s = [0x06C0, 0x8C40, 0x6C00, 0x4620] | |
| t = [0x0E40, 0x4C40, 0x4E00, 0x4640] | |
| z = [0x0C60, 0x4C80, 0xC600, 0x2640] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment