Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. //-------------------------------------------------------------------------
  2. // tetris pieces
  3. //
  4. // blocks: each element represents a rotation of the piece (0, 90, 180, 270)
  5. // each element is a 16 bit integer where the 16 bits represent
  6. // a 4x4 set of blocks, e.g. j.blocks[0] = 0x44C0
  7. //
  8. // 0100 = 0x4 << 3 = 0x4000
  9. // 0100 = 0x4 << 2 = 0x0400
  10. // 1100 = 0xC << 1 = 0x00C0
  11. // 0000 = 0x0 << 0 = 0x0000
  12. // ------
  13. // 0x44C0
  14. //
  15. //-------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement