Skip to content

Commit

Permalink
Adding titles
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanV2 committed Dec 14, 2023
1 parent 0e87d1a commit 0a7d6ee
Showing 1 changed file with 38 additions and 12 deletions.
50 changes: 38 additions & 12 deletions source/resource/textures/aseprite_flipbook.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,67 +5,93 @@
"description": "The file that specifies Aseprite/libresprite flipbook animation.",
"title": "Aseprite Flipbook File",
"type": "object",
"required": ["meta", "frames"],
"properties": {
"meta": {
"title": "Meta",
"type": "object",
"description": "The meta data of the flipbook.",
"additionalProperties": true,
"required": ["size", "image"],
"properties": {
"size": {
"type": "object",
"title": "Size",
"description": "The size of the flipbook sprite sheet.",
"required": ["w", "h"],
"examples": [
{
"w": 16,
"h": 16
}
],
"properties": {
"w": {
"title": "Width",
"description": "The width of the sprite sheet.",
"type": "integer"
"type": "integer",
"default": 16
},
"h": {
"title": "Height",
"description": "The height of the sprite sheet.",
"type": "integer"
"type": "integer",
"default": 16
}
},
"required": ["w", "h"]
}
},
"image": {
"title": "Image",
"description": "The path to the sprite sheet. The value is required, but not used.",
"type": "string"
}
},
"required": ["size", "image"]
}
},
"frames": {
"title": "Frames",
"type": "array",
"description": "The frames of the flipbook.",
"items": {
"title": "Frame",
"description": "A frame of the flipbook.",
"type": "object",
"additionalProperties": true,
"required": ["duration", "frame"],
"properties": {
"duration": {
"title": "Duration",
"description": "The duration of the frame in milliseconds.",
"type": "integer",
"minimum": 1
},
"frame": {
"title": "Frame",
"type": "object",
"description": "The position of the frame in the sprite sheet (UV).",
"required": ["x", "y"],
"examples": [
{
"x": 0,
"y": 0
}
],
"properties": {
"x": {
"title": "X",
"type": "integer",
"description": "The x position of the frame in the sprite sheet.",
"minimum": 0
},
"y": {
"title": "Y",
"type": "integer",
"description": "The y position of the frame in the sprite sheet.",
"minimum": 0
}
},
"required": ["x", "y"]
}
}
},
"required": ["duration", "frame"]
}
}
}
},
"required": ["meta", "frames"]
}
}

0 comments on commit 0a7d6ee

Please sign in to comment.