Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SPEC = [
- {'key': 'version', 'type': str, 'width': 25},
- {'key': 'sceneWidth', 'type': int},
- {'key': 'sceneHeight', 'type': int},
- {'key': 'sheetWidth', 'type': int},
- {'key': 'sheetHeight', 'type': int},
- {'key': 'maxSprites', 'type': int},
- {'key': 'colorsExported', 'type': bool},
- {'key': 'colorOperationsCombined', 'type': bool},
- {'key': 'clips', 'type': list, 'child': [
- {'key': 'name', 'type': str, 'width': 25},
- {'key': 'startFrame', 'type': int},
- {'key': 'duration', 'type': int}
- ]},
- {'key': 'triggers', 'type': list, 'child': [
- {'key': 'frame', 'type': int},
- {'key': 'name', 'type': str, 'width': 25}
- ]},
- {'key': 'sprites', 'type': list, 'child': [
- {'key': 'id', 'type': int},
- {'key': 'name', 'type': str, 'width': 25},
- {'key': 'x', 'type': int},
- {'key': 'y', 'type': int},
- {'key': 'width', 'type': int},
- {'key': 'height', 'type': int},
- {'key': 'rotated', 'type': bool}
- ]},
- {'key': 'animationData', 'type': list, 'child': [
- [
- {'key': 'spriteID', 'type': int},
- {'key': 'color', 'type': list, 'child': [
- {'key': 'r', 'type': float},
- {'key': 'g', 'type': float},
- {'key': 'b', 'type': float},
- {'key': 'a', 'type': float}
- ]},
- {'key': 'colorAdd', 'type': list, 'child': [
- {'key': 'r', 'type': float},
- {'key': 'g', 'type': float},
- {'key': 'b', 'type': float},
- {'key': 'a', 'type': float}
- ]},
- {'key': 'scaleX', 'type': float},
- {'key': 'scaleY', 'type': float},
- {'key': 'skewX', 'type': float},
- {'key': 'skewY', 'type': float},
- {'key': 'positionX', 'type': float},
- {'key': 'positionY', 'type': float},
- {'key': 'positionZ', 'type': float}
- ]
- ]},
- {'key': 'trackObjects', 'type': list, 'child': [
- {'key': 'name', 'type': str, 'width': 25},
- {'key': 'transform', 'type': list, 'child': [
- {'key': 'frame', 'type': int},
- {'key': 'position', 'type': list, 'child': [
- {'key': 'x', 'type': float},
- {'key': 'y', 'type': float},
- {'key': 'z', 'type': float}
- ]},
- {'key': 'scale', 'type': list, 'child': [
- {'key': 'x', 'type': float},
- {'key': 'y', 'type': float}
- ]},
- {'key': 'rotation', 'type': float}
- ]}
- ]}
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement