Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. SPEC = [
  2. {'key': 'version', 'type': str, 'width': 25},
  3. {'key': 'sceneWidth', 'type': int},
  4. {'key': 'sceneHeight', 'type': int},
  5. {'key': 'sheetWidth', 'type': int},
  6. {'key': 'sheetHeight', 'type': int},
  7. {'key': 'maxSprites', 'type': int},
  8. {'key': 'colorsExported', 'type': bool},
  9. {'key': 'colorOperationsCombined', 'type': bool},
  10. {'key': 'clips', 'type': list, 'child': [
  11. {'key': 'name', 'type': str, 'width': 25},
  12. {'key': 'startFrame', 'type': int},
  13. {'key': 'duration', 'type': int}
  14. ]},
  15. {'key': 'triggers', 'type': list, 'child': [
  16. {'key': 'frame', 'type': int},
  17. {'key': 'name', 'type': str, 'width': 25}
  18. ]},
  19. {'key': 'sprites', 'type': list, 'child': [
  20. {'key': 'id', 'type': int},
  21. {'key': 'name', 'type': str, 'width': 25},
  22. {'key': 'x', 'type': int},
  23. {'key': 'y', 'type': int},
  24. {'key': 'width', 'type': int},
  25. {'key': 'height', 'type': int},
  26. {'key': 'rotated', 'type': bool}
  27. ]},
  28. {'key': 'animationData', 'type': list, 'child': [
  29. [
  30. {'key': 'spriteID', 'type': int},
  31. {'key': 'color', 'type': list, 'child': [
  32. {'key': 'r', 'type': float},
  33. {'key': 'g', 'type': float},
  34. {'key': 'b', 'type': float},
  35. {'key': 'a', 'type': float}
  36. ]},
  37. {'key': 'colorAdd', 'type': list, 'child': [
  38. {'key': 'r', 'type': float},
  39. {'key': 'g', 'type': float},
  40. {'key': 'b', 'type': float},
  41. {'key': 'a', 'type': float}
  42. ]},
  43. {'key': 'scaleX', 'type': float},
  44. {'key': 'scaleY', 'type': float},
  45. {'key': 'skewX', 'type': float},
  46. {'key': 'skewY', 'type': float},
  47. {'key': 'positionX', 'type': float},
  48. {'key': 'positionY', 'type': float},
  49. {'key': 'positionZ', 'type': float}
  50. ]
  51. ]},
  52. {'key': 'trackObjects', 'type': list, 'child': [
  53. {'key': 'name', 'type': str, 'width': 25},
  54. {'key': 'transform', 'type': list, 'child': [
  55. {'key': 'frame', 'type': int},
  56. {'key': 'position', 'type': list, 'child': [
  57. {'key': 'x', 'type': float},
  58. {'key': 'y', 'type': float},
  59. {'key': 'z', 'type': float}
  60. ]},
  61. {'key': 'scale', 'type': list, 'child': [
  62. {'key': 'x', 'type': float},
  63. {'key': 'y', 'type': float}
  64. ]},
  65. {'key': 'rotation', 'type': float}
  66. ]}
  67. ]}
  68. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement