Advertisement
Guest User

Untitled

a guest
Feb 12th, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. static const u8 dir_to_tile[24 * 8] =
  2. {
  3. // 0 +X +Y +Z 0 -Z -Y -X
  4. 0, 2, 0, 4, 0, 5, 1, 3, // rotate over y+ 0 - 3
  5. 0, 4, 0, 3, 0, 2, 1, 5,
  6. 0, 3, 0, 5, 0, 4, 1, 2,
  7. 0, 5, 0, 2, 0, 3, 1, 4,
  8.  
  9. 0, 3, 5, 0, 0, 1, 4, 2, // rotate over z+ 4 - 7
  10. 0, 5, 3, 0, 0, 1, 2, 4,
  11. 0, 3, 4, 0, 0, 1, 5, 2,
  12. 0, 4, 2, 0, 0, 1, 3, 5,
  13.  
  14. 0, 2, 5, 1, 0, 0, 4, 3, // rotate over z- 8 - 11
  15. 0, 5, 2, 1, 0, 0, 3, 4,
  16. 0, 3, 4, 1, 0, 0, 5, 2,
  17. 0, 4, 3, 1, 0, 0, 2, 5,
  18.  
  19. 0, 0, 5, 2, 0, 3, 4, 1, // rotate over x+ 12 - 15
  20. 0, 0, 3, 5, 0, 4, 2, 1,
  21. 0, 0, 4, 3, 0, 2, 5, 1,
  22. 0, 0, 2, 4, 0, 5, 3, 1,
  23.  
  24. 0, 1, 5, 3, 0, 2, 4, 0, // rotate over x- 16 - 19
  25. 0, 1, 2, 5, 0, 4, 3, 0,
  26. 0, 1, 4, 2, 0, 3, 5, 0,
  27. 0, 1, 3, 4, 0, 5, 2, 0,
  28.  
  29. 0, 3, 1, 4, 0, 5, 0, 2, // rotate over y- 20 - 23
  30. 0, 4, 1, 2, 0, 3, 0, 5,
  31. 0, 2, 1, 5, 0, 4, 0, 3,
  32. 0, 5, 1, 3, 0, 2, 0, 4,
  33. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement