Skip to main content

sprite_sheet

Files live in sheets/. Used by sprite · sheet.

An image cut into frames of any size, for sprite.sheet: texture names the image and each of frames is a rect of [x, y, w, h] texture pixels with the duration in seconds a clip shows it for. sprite.frame indexes the list, past the end drawing the last frame. [tags.<name>] is a run of frames from one index to another with a direction (forward, reverse, pingpong, pingpong_reverse) and a repeat count, zero for ever; [slices.<name>] is a rect on a frame, in the frame's own pixels, with an optional nine-patch center and pivot, and keys when the slice moves between frames. balaur import file.aseprite writes one of these beside the atlas it packs and a clip per tag.

type = "sprite_sheet"
texture = "art/walk.png"
frames = [
{ rect = [0, 0, 32, 32], duration = 0.1 },
{ rect = [32, 0, 32, 32], duration = 0.1 },
]

[tags.walk]
from = 0
to = 1
direction = "forward"

[slices.hitbox]
rect = [8, 4, 16, 28]