Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. static const uint32_t projectileCategory = 0x1 << 1;
  2.  
  3. static const uint32_t projectileCategory = 0x2;
  4.  
  5. static const uint32_t projectileCategory = 0x1 << 1;// bit 1
  6. static const uint32_t doodadCategory = 0x1 << 2;// bit 2
  7. static const uint32_t playerCategory = 0x1 << 3;// bit 3
  8. static const uint32_t doorCategory = 0x1 << 4;// bit 4
  9.  
  10. 0x1: 00000001
  11. 0x2: 00000010 <- product of 0x1 << 1
  12. 0x4: 00000100 <- product of 0x1 << 2
  13.  
  14. (0x1 << 1)
  15.  
  16. 0x02
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement