Spriteria
EN English
Download

Spriteria user guide

Everything you need to know to use Spriteria, from the first canvas to the export into your game engine. Search for a word on the side or jump to the section you need.

Up to date with Spriteria 1.2.0

Getting started#

Spriteria is a pixel art editor for 64-bit Windows 10 and 11. Get it from the Download page: the installer adds the Start menu shortcut and associates .spriteria files; the portable version is a zip you extract wherever you like, with nothing to install. A .spriteria file opened from File Explorer while Spriteria is already running goes into a new tab of that window.

  1. Start Spriteria: an empty 32 × 32 pixel document opens with a 16-colour palette.
  2. Pick a colour in the Palette panel (click for the primary, right click for the secondary).
  3. Draw with the Pencil (B): left button for the primary, right for the secondary. Every stroke undoes with Ctrl+Z.
  4. Zoom with the mouse wheel and move the view holding the space bar.
  5. Save the project with Ctrl+S (.spriteria format) and export a PNG with Ctrl+E.

The interface#

The Spriteria window with four documents in tabs
The Spriteria window with four documents in tabs
  • Menus at the top: File, Edit, View, Layer, Animation, Sheet, Tileset, Palette, Window and ?.
  • Options bar under the menus: the options of the active tool (size, shape, mode…), remembered between sessions.
  • Toolbox on the left, split into groups. Isometric tools appear only in isometric mode, tileset tools only in tilesets, the Game data tool only in static and animation documents.
  • Document tabs above the work area, and in tilesets the Tileset and Test map tabs.
  • Canvas in the middle: the zoomed canvas, with grids, selection and previews on top.
  • Panels on the right: Preview at real size, Colours and, depending on the document, Terrains, Tile, Frame data, Layers, Palette and Groups. A click on the title collapses or reopens them; dragging the title moves them (Preview and Colours stay at the top among themselves, the others in the scrolling part). With a panel focused (Tab) Space collapses or opens it and Ctrl+↑ / Ctrl+↓ move it. Order and collapsed panels are remembered; Window → Reset panel layout goes back to the initial order with every panel open.
  • When reopened the window comes back as you left it: position, size and, if you closed it maximized, maximized (on a monitor that is no longer there it opens centred).
  • Animation strip at the bottom: playback, frame thumbnails with their durations, tags and the layer timeline.
  • Status bar: cursor position, size, zoom, frame and the program's messages.

Documents and files#

File → New (Ctrl+N) creates five kinds of document, chosen with the tabs at the top of the dialog:

KindWhat for
StaticA single image: an item, an icon, a background.
AnimationSeveral frames of the same size, with durations and tags: characters, effects.
SpritesheetA hand-drawn sheet split into cells (sprite size × columns × rows, with spacing and margin).
TilesetA tile atlas for maps, with terrains, collisions, data and a test map; it starts from a template (empty, Corners 16, Sides 16, Blob 47 or pieces for the generator).
Bitmap fontA font drawn letter by letter: one cell per character, with baseline, advances and kerning; it exports to BMFont.

In the same window you choose the size (also from the Presets) and the starting palette (the library palettes or a Template). Projects are saved as .spriteria (Ctrl+S, Save as Ctrl+Shift+S), a file that keeps layers, frames, tags, palette, grids, tileset, game data and export targets. File → Open (Ctrl+O) and the recent files list reopen them.

To work on existing images:

  • Import PNG image (Ctrl+I): a new document from the PNG; its colours become a new palette or are brought to the current palette (nearest colour).
  • Open PNG as spritesheet: the image stays whole and becomes a sheet, given the cell size or rows and columns with spacing and margin.
  • Import spritesheet: splits a sheet into the frames of an animation (transparent cells can be skipped).
  • Import PNG sequence: one frame per file.
  • Import a level as tileset: from a level screenshot it cuts the unique tiles and rebuilds the map.

If something goes wrong. A damaged file never closes Spriteria: a message says what is wrong. If the preferences are damaged they are set aside as preferences.bad.json and Spriteria starts again from the defaults. If an unexpected error happens, Spriteria immediately saves a recovery copy of the modified documents and writes the details to a file in the logs folder (next to the preferences): the Open the log folder button shows it, so you can send the file to the developer.

The File menu also has: Exit.

Several documents in tabs#

Every document opens in its own tab, with its own undo history, zoom, active layer and frame, colours and other working settings: going back to a tab you find everything as it was. The clipboard is shared, so you can copy between documents.

  • Ctrl+Tab and Ctrl+Shift+Tab go to the next and previous tab, Ctrl+W closes the active one; the middle mouse button on a tab closes it.
  • The Window menu lists the open documents and has Close others and Close all.
  • Opening a file that is already open activates its tab; an untouched "Untitled" document is replaced by the first file you open.
  • Closing Spriteria with several modified documents, a single window asks which ones to save.
  • In Preferences, Reopen the documents of the last session reopens at startup the files that were open.

The Window menu also has: Next tab, Previous tab.

Project folder#

Window → Project folder opens a panel to the left of the work area with a folder's files: subfolders first, then the files Spriteria opens (.spriteria, .png, .aseprite, .ase, .gpl, .hex), each with its thumbnail. Choose it with Choose folder (which remembers the last five), go up by clicking the folders in the path, and the field at the top filters by name. Drag the right edge to widen it; the button next to Refresh switches between grid and list.

  • Double-click: opens a project or Aseprite file in a tab (or goes to the tab that already has it), a PNG as Import PNG image; a .gpl palette is linked to the active document and a .hex one applied, after a confirmation.
  • Right-click: Open, Re-export the targets (also of closed projects, without opening them), Link the palette to the active document, Show in the system folder. Ctrl and Shift select several files.
  • A coloured dot marks files open in a tab, an asterisk after the name those modified and not saved.

Outline and batch operations#

Edit → Outline draws a one-pixel outline in the primary colour: outside (on the transparent pixels next to the content) or inside (on the edge of the content), with 4 neighbours (sides only) or 8 (diagonals too). The content is the active layer or all visible layers; the outline goes on the active layer or on a new “Outline” layer below it, in the current frame, the frames selected in the film strip or all of them. It respects the selection and is a single undo step.

File → Batch operations applies one operation to many .spriteria projects: add them with Add files, Add folder or, from the project folder, by right-clicking the selected files.

  • Outline, with the options above on all frames; the colour is the primary colour (the nearest entry in each document) and in closed files the active layer is the top one.
  • Change palette: a preset or a file, with Nearest colour or Same indices; optionally the documents are linked to the .gpl file.
  • Canvas size: width, height and anchor; sheets and tilesets are skipped.
  • Re-export the active targets; the other operations also have the Re-export after the operation box.

Run works file by file, with a progress bar and Stop; the result appears next to each file. A closed file is rewritten after its original is copied; a file open in a tab is changed there, as one undo step, and is not saved.

Canvas and view#

  • Zoom with the wheel, with + and − or with the Zoom tool (Z); always by whole factors, so every pixel stays a crisp square. Fit to window Ctrl+0.
  • Moving the view: hold the space bar, use the middle mouse button or the Hand tool (H).
  • Pixel grid Ctrl+G: it appears at the higher zoom levels; its opacity and the transparency checkerboard (dark, medium, light) are in Preferences.
  • The Preview panel shows the document at real size, also while the animation plays.
  • The status bar shows the position of the pixel under the cursor and, in sheets and tilesets, the cell.

The View menu also has: Zoom in, Zoom out.

Colours and palette#

In Spriteria every pixel is a palette index (up to 255 colours plus transparent, index 0). There are no colours outside the palette: if you change an entry, every pixel using it changes, in every layer and frame. It is the way old consoles and computers worked, and it makes colour variants easy to try.

  • Click an entry: primary colour (left button); right click: secondary (right button). X swaps them; , and . step through the primary, ; and : through the secondary.
  • Double click an entry to edit it; the panel buttons add, duplicate, edit and remove colours. Dragging an entry moves it: the pixels follow.
  • Groups are colour ramps from darkest to lightest: they are created from the primary to the secondary and are used by the Darken and lighten tool, by isometric faces and to keep colours in order.
  • Palette properties: name, colour limit and bits per channel (for example 5 bits as on 16-bit consoles: every added or edited colour is rounded); a locked palette cannot be changed by mistake.
  • Palette library (Ctrl+L): Game Boy, NES, Master System, Commodore 64, ZX Spectrum, EGA, PICO-8, SNES, Mega Drive, Amiga (Workbench, OCS, EHB) and your own, saved with Save to library.
  • Import and export palettes as .gpl (GIMP), .hex and PNG; Extract from an image takes the colours of an image (reducing them if there are too many).
  • The panel shows which entries are used in the document.

Variants: alternative colours for the same indices, for example the red, blue and elite enemy, or night. The drawing does not change: only the colours do.

  • In the Palette panel the Variant list picks the base or a variant; the buttons next to it (or the Palette menu) create a variant from the shown colours, rename it and delete it.
  • With a variant chosen, canvas, preview, frame strip and colour buttons show it; editing a colour changes it only in that variant. You keep drawing with the same indices.
  • A colour you add takes the base colour in every variant; moving or removing colours, the variants follow. The shown variant is not saved and is not an undo step; creating, editing and deleting variants are.

Linked palette: several documents can use the same .gpl file (for example the palette of the whole game). Palette → Link to a palette file (or the chain button in the panel header) picks the file; if it exists and differs, you choose whether the file's colours or the document's win.

  • The document always keeps its own copy of the colours, so it opens even without the file. The file name shows under the variants, with the button to unlink it.
  • On save the palette is also written to the file; the other tabs that use the same file reload it at once, as an undo step. The file is also reloaded when you open the document, switch tabs or come back to Spriteria, so changes made with other programs arrive by themselves.
  • If the file was changed by someone else while the document's colours differ too, before saving you choose whether to overwrite it, use the file or unlink the document.
  • Documents share the file index by index, so in a linked palette colours cannot be removed, moved or inserted in the middle: you change colours, names, groups and variants and add colours at the end. Applying a palette from the library or a file unlinks the document.
  • If the file is missing or has too few colours for the drawing, the link is marked broken and the document's colours are used. Variants live in the file, so they are the same for every linked document.

The Palette menu also has: Add colour, Duplicate colour, Edit colour, Rename colour, Remove colour, New group from primary to secondary, Rename group, Sort group from dark to light, Delete group, Palette locked, New variant, Rename variant, Delete variant, Reload palette from file, Unlink palette, Import palette, Export palette.

Drawing and shape tools#

Rules shared by every tool: left button = primary colour, right = secondary; while you draw you see a preview and the document changes only when you release, so a whole stroke is a single undo step. Tools write only on the active layer and frame, never on a hidden or locked layer (the status bar says so), and only inside the selection if there is one.

ToolKeyWhat it does
PencilBDraws pixels following the mouse, with no gaps between samples. With Shift a click draws a straight line from the last point. Pixel-perfect removes the L-shaped double corners of freehand lines; Only on filled pixels paints only where there is already colour (handy for shading inside a shape).Options: Size · Shape: Square, Round · Pixel-perfect · Write: Overwrite, Only on filled pixels
EraserETurns pixels back to transparent (palette index 0).Options: Size · Shape: Square, Round
Dither brushUPaints alternating the primary and secondary colour with a checkerboard or a Bayer matrix pattern; the density sets how much each of the two weighs.Options: Size · Shape: Square, Round · Pattern: Checkerboard, Bayer 2×2, Bayer 4×4, Bayer 8×8 · Density
BucketGFills the area of the same colour. With Contiguous off it colours every pixel of that colour in the layer; tolerance joins colours that are close in the palette; the sample can be the active layer or the composed image.Options: Contiguous · Tolerance · Sample: Layer, Image
Dithered gradientFDrag to fill the selection (or the layer) with a dithered blend from primary to secondary, linear or radial, without creating new colours.Options: Shape: Linear, Radial · Matrix: Bayer 2×2, Bayer 4×4, Bayer 8×8
EyedropperILeft click picks the primary colour, right click the secondary; on a transparent pixel it picks transparency. Holding Alt turns any tool into the eyedropper for a moment.Options: Sample: Layer, Image
Replace colourKClick a pixel: every pixel of that colour becomes the primary colour, in the layer, the frame or all frames.Options: Scope: Layer, Frame, All frames
Darken and lightenDMoving over pixels shifts them one or more steps along the palette ramp (group) they belong to: darkens or lightens while staying in the ramp's colours. Pixels outside every group do not change.Options: Size · Shape: Square, Round · Direction: Darken, Lighten · Steps
Clone stampNSelect an area and choose the stamp: the brush becomes the selection's content on the active layer (empty pixels stay transparent); Ctrl+click the button to take everything visible, from all layers. The cursor shows the brush, a click stamps it even outside the selection and dragging stamps side-by-side copies; each stroke is one undo step. Letter N (in isometric mode N cycles the drawing plane).
LineLDrag for a pixel-perfect line; Shift constrains it to horizontal, vertical or 45°.Options: Thickness
RectangleRDrag for a rectangle; Shift makes a square, Ctrl draws it from the centre. Outline and fill uses the primary for the border and the secondary for the inside.Options: Mode: Outline, Filled, Outline and fill · Thickness
EllipseODrag for a symmetric ellipse with no stray pixels; Shift makes a circle, Ctrl draws it from the centre.Options: Mode: Outline, Filled, Outline and fill · Thickness
PolygonPClick each vertex; Enter, double click or a click on the first vertex closes the shape, Esc cancels.Options: Mode: Outline, Filled
CurveCClick the control points with a preview of the curve; Enter or double click confirms.Options: Thickness

Selections, clipboard and transforms#

ToolKeyWhat it does
Rectangular selectionMSelects a rectangle; Shift for a square, Ctrl from the centre. The mode decides whether to replace, add to, subtract from or intersect the existing selection.Options: Mode: Replace, Add, Subtract, Intersect
Elliptical selectionJSelects an ellipse; Shift for a circle, Ctrl from the centre.Options: Mode: Replace, Add, Subtract, Intersect
LassoQSelects a freehand outline.Options: Mode: Replace, Add, Subtract, Intersect
Polygonal selectionYSelects a polygon: click the vertices, Enter or double click to close.Options: Mode: Replace, Add, Subtract, Intersect
Magic wandWSelects pixels of the same colour, contiguous or in the whole layer, with tolerance.Options: Mode: Replace, Add, Subtract, Intersect · Contiguous · Tolerance · Sample: Layer, Image
MoveVMoves the selected content (or the whole layer, without a selection) by dragging or with the arrow keys, one pixel at a time. The content stays floating until you press Enter or change tool; Esc cancels. Wrap at edges brings back on the other side what goes out.Options: Wrap at edges
TransformTRotates the selection by any angle with a crisp pixel preview (no blur); Enter confirms, Esc cancels. Flips, 90° rotations and integer scaling are in Edit → Transform.
  • Select all Ctrl+A, Deselect Ctrl+D, Invert selection Ctrl+Shift+I; Del clears the selected content.
  • Copy Ctrl+C, Cut Ctrl+X, Paste Ctrl+V (pasted content stays floating and moves with the Move tool; Enter confirms) and Paste into a new layer Ctrl+Shift+V. Images copied from other programs paste too, brought to the palette.
  • Edit → Transform: Flip horizontally Shift+H and vertically Shift+V, Rotate 90° Shift+R, −90° and 180°, Scale ×2, ×3, ×4 and Wrap-around scroll. They act on the selection or, without a selection, on the active layer.
  • The arrow keys move the selection or the content you are moving by one pixel.
  • Edit → Canvas size changes the canvas size choosing the anchor; it applies to every frame.

The Edit menu also has: Redo, Clear.

The Edit → Transform menu also has: Flip vertically, Rotate 90° clockwise, Rotate 90° counter-clockwise, Rotate 180°, Scale ×3, Scale ×4.

Symmetry#

View → Symmetry chooses a vertical axis, a horizontal one or both: everything you draw is mirrored, and the preview already shows the reflected pixels. The axis position puts them on the centre of a pixel or between two pixels, for shapes of even or odd width. In isometric mode isometric symmetry also swaps the left and right face colours.

The View menu also has: Isometric symmetry (swaps faces).

The View → Symmetry menu also has: Vertical axis (left and right), Horizontal axis (top and bottom), Both axes.

Layers#

  • The Layers panel lists layers from top to bottom: the eye hides them, the padlock locks them, a double click on the name renames it, dragging reorders them.
  • Under the list: layer opacity and blend (Normal, Multiply, Screen). Compositing is computed by the program, identical on every computer, and never adds colours to the palette: it applies to the view and to exports.
  • Layer menu: New Ctrl+Shift+N, Duplicate, Delete, Rename, Move up and down, Merge down, Merge visible layers, Flatten.
  • In animations every layer has a cel per frame: the timeline at the bottom shows which cels contain pixels.
  • Reference layer: an image to trace over (a sketch, a photo, a game screenshot). Layer → New reference layer from file (PNG, JPG, BMP, GIF) or from the clipboard: the image is centred and scaled down to fit the canvas, at 50% opacity. It only shows on the canvas: it never goes into exports, thumbnails, the preview or the onion skin.
  • You cannot draw on a reference layer. The Move tool moves the image, Layer → Reference position and scale sets an exact position and scale (or fits it to the canvas), and the Eyedropper picks the palette colour nearest to the image. Merging and flattening layers leave references alone.

The Layer menu also has: Duplicate layer, Delete layer, Rename layer, Move down.

Readability check#

A sprite has to read well in the game. View → Check only changes how colours look on the canvas, in the preview, the film strip and the palette swatches; exports and the document colours do not change.

  • Values (greyscale) Ctrl+Alt+V: the lightness of each colour. Shapes must work without colour too; in the palette you see which colours share the same value. The same key goes back to normal colours.
  • Silhouette: every filled pixel in a single colour, to check that the shape is recognisable.
  • Protanopia, Deuteranopia, Tritanopia, Achromatopsia: how people with a kind of colour blindness see the colours (simulation by Machado, Oliveira and Fernandes).
  • View → Isolated pixels outlines in red the pixels that have no neighbour of the same colour, and the status bar counts them: it helps to find noise left while drawing. Intended pixels (a star, a highlight) stay marked: it is a check, not a rule.

The View → Check menu also has: Normal colours.

The Layer menu also has: New reference layer from the clipboard.

Normal maps for 2D lighting#

A normal map tells, for every pixel, which way the surface faces: Godot's 2D lights use it to light the sprite. In pixel art it is drawn by hand, with a few directions.

  • Layer → New normal layer adds a layer holding directions instead of colours. It shows in normal map colours, never enters the colour composition and does not change with the palette.
  • With the normal layer active the Colours panel becomes Normals: a disc with the flat direction in the middle and three rings of 16 directions. Left button = primary, right = secondary. Every drawing tool writes the direction as it would write a colour; the eyedropper reads it; shade, replace colour and isometric tools stop.
  • Layer → Fill flat (normals) puts the flat normal wherever there are colours: then you only draw the slanted edges.
  • Flipping or rotating a normal layer turns the directions too, and the mirrored directions of a multi-direction sprite get mirrored normals.
  • View → Test light lights the canvas from one of 8 directions, to check the result without leaving the editor.
  • In exports (spritesheet, PNG, sequence, Godot SpriteFrames and, with an export target, Godot TileSet) the Normal map option writes name_n.png with the same layout, with y up (Godot) or down. For Godot the atlas becomes a CanvasTexture with colours and normals: just add a 2D light to the scene.

The View → Test light menu also has: Off, From the north, From the north-east, From the east, From the south-east, From the south, From the south-west, From the west, From the north-west.

Animation#

An animation with the frame strip, tags and onion skin
An animation with the frame strip, tags and onion skin
  • Play / stop Ctrl+P, with speed, loop and range (all frames or a tag) in the animation bar. Alt+← and Alt+→ go to the previous and next frame.
  • New frame Alt+N (with New as copy it copies the current frame), Duplicate Alt+D, Delete, Move earlier/later; in the strip drag a frame to move it and use Shift+click to select several.
  • The duration of every frame in milliseconds, from the box in the bar or from Animation → Duration for all the selected frames.
  • Copy/Paste frames also between documents, Copy previous frame here Alt+C, and Ctrl+Alt+arrows to shift the whole frame content by one pixel.
  • Flip frames horizontally or vertically: every layer of the selected frames together with their game data (to get the left walk from the right one).
  • Linked cels: the same drawing shared by several frames of the same layer (a head that stays still while the legs walk). In the timeline choose the cels with Shift+click, then right-click → Link the chosen cels: they all take the drawing of the active cel. A stroke on one changes all of them, in a single undo step; Unlink gives the cel its own copy.
  • A bar under the timeline cels joins the linked ones (blue for the group of the active cel). Animation → Duplicate selected frames linked (also from the right-click in the timeline) makes frames whose cels are all linked to the originals; Duplicate makes independent copies instead. Flipping or outlining some frames changes the linked frames too, and the status bar says so.
  • Tags: named frame ranges with a colour and a direction (forward, reverse, ping-pong), for example walk, idle, jump. They become the animations in exports.
  • 4- and 8-direction sprites: an animation is a name and each direction is a tag with that name and a facing (in the tag window). Animation → Directions picks 4 or 8 directions, the drawn side (directions on the other side are mirrored: with 8 directions you draw 5), how they go into exports and the naming convention (walk_se, walk_down_right or walk_7). Recognise directions from tag names derives them from tags such as walk_down (handy after an Aseprite import).
  • The Directions panel shows the rose of the chosen animation: clicking a drawn direction goes to its frames, a mirrored one plays it flipped in the preview, a missing one creates its empty frames at the end. In exports mirrored directions become flipped frames (with game data and pivot mirrored) or just names with flipH in the JSON and metadata/mirrors for Godot, if the game flips them itself.
  • Onion skin Ctrl+Shift+O: previous frames in red and next ones in blue; in its settings you choose how many, the opacity, active layer only and loop.
  • A static document becomes an animation with Convert to animation.

The View menu also has: Onion skin settings.

The Animation menu also has: First frame, Previous frame, Next frame, Last frame, Duplicate selected frames, Delete selected frames, Move later, Copy selected frames, Paste frames, Flip frames horizontally, Flip frames vertically, New tag from selected frames, Edit tag, Delete tag.

Effects#

Effects draw on the document starting from what is already there: select a part (for example the gem of a ring), choose an effect from the Effects menu, and a window offers its settings with a live preview. Static effects add a layer above the active one and draw in it; animated effects add a layer and the frames of the animation. Your drawing doesn't change, and everything undoes in a single step.

  • Area and shape: the selection (or the whole canvas) says which shape to start from: the pixels of the active layer, or with Shape from all visible layers what you see. The effect also draws around it, outside the selection: the reflection under the object, the shadow on the ground, the glow all around. With Draw only inside the selection it stays inside.
  • Glow (static): a halo around the shape that fades with distance. Radius, number of tones, intensity, transition between tones (dithered, banded, solid), veil over the shape, colour near the shape and outer colour.
  • Rim light (static): the edge pixels facing the light take a light colour, and optionally those on the opposite side a shadow colour. Light from starts from the light direction of isometric mode; Inside the dark outline keeps a one-pixel outline as it is and puts the light just inside it; Inner edges too also lights the holes of the shape.
  • Highlights (static): small touches of light on the shape, near the outer edge on the side facing the light, even on thin shapes like a wedding ring. Number, size, shape (dot, straight stroke, curved stroke that follows the edge), minimum distance and colour; the dark outline stays as it is.
  • Sparkle (static and animated): cross, diagonal cross, 8-pointed star or diamond sparkles, on the shape, on its brightest pixels or anywhere in the area, with minimum and maximum size, minimum distance, centre and ray colours. In the animated version each sparkle appears, grows, shines and fades: Life says for how many frames, Rhythm whether in random order or in sequence.
  • Pulse (animated): a glow that grows and shrinks, the shape brightening towards the colour near the shape, or both. Minimum and maximum radius, tones, curve (wave, double beat, sawtooth), brightening and colours.
  • Points: some effects start from a point (the smoke origin, the flame base, the sparks' contact point) or from two (start and end of the particle line). In the preview they are blue rings: drag them where you want, and Swap points swaps the two. They start on the shape (above, below or at its centre) or, without a shape, at the bottom of the area.
  • Particles (animated): an emitter (a point, a line, the whole area or the edge of the shape) throws particles (pixel, 2 × 2, cross, spark, small ring) with speed, direction, spread and gravity; the colour goes from the start colour to the end colour, and the size can stay the same, grow or shrink.
  • Smoke (static and animated): puffs that rise from the origin, sway, widen and thin out, with light and shadow. Puffs, starting size, growth, height reached, density; in static smoke Moment picks the instant of the animation.
  • Friction sparks (static): a fan of sparks from the contact point, with a bright head and a darker tail; direction, spread, number, streak length, distance, gravity and embers.
  • Fire (animated): fire rising from the base, with width, height, wind, turbulence, style (soft tongues or blocky), tones from the core to the outside, embers and smoke on top: the same puffs as Smoke, rising from the tip and bent by the wind, with number of puffs, height, size, density and two colours (the smoke controls turn on with the checkbox).
  • Cast shadow (static): the silhouette laid on the ground on the side away from the light, slanted, an ellipse under the shape, or the silhouette offset by a few pixels. Ground line (point), light, length, slant, dithered density (25–100%), fading with distance and colour. The shadow never covers the shape.
  • Mirror reflection (static): the shape upside down under the water line, like in a puddle. Distance from the line, reflection height, colours (tinted towards the water colour, darker along the palette ramp, or the same) and amount, waves, ripples (dashed rows in the ripple colour) and fading towards the bottom.
  • Hit flash (animated): the silhouette in a single colour (white at first) in some frames: one flash, two flashes or alternating, with an optional outline around it.
  • Dissolve (animated): the shape disappears or appears with dithering, grains, a sweep from one side, or disintegrating with the pixels flying away in the chosen direction.
  • Shake (animated): the shape shakes by 1–4 pixels horizontally, vertically or both, randomly or regularly, and can settle down.
  • Bounce (animated): the shape jumps and falls with gravity, squashes on the ground and stretches when taking off and landing; height, bounces per cycle, squash, pause on the ground and a ground shadow that shrinks as it rises.
  • Hole (static): a hole in the surface, with a centre you can drag. Shape (circle, ellipse, irregular, rectangle, star crack), width, height, roughness, view (from above or three-quarter, with the far wall visible), depth in tones from the wall to the bottom, light, lip (raised or broken, in the surface colour lightened towards the light and darkened on the other side) and debris. Inside: in shadow, or empty: the active layer's pixels inside the hole are removed and you see what is underneath.
  • Hole opening and Hole closing (animated): the same settings as the hole; the hole widens from the centre, or the cracks open first and then it collapses, with debris flying away; the closing one ends with the whole surface (with an empty inside the pixels come back).
  • Magnifying glass (static): a circle that magnifies what is underneath (all visible layers) 2, 3 or 4 times, flat or bubble-shaped, with a rim (thin, or thick with the handle in the chosen direction) and a glint on the glass.
  • Flowing water (animated): a current, stream or waterfall over the whole selection or on the shape, in the chosen direction: light streaks moving 1–8 pixels per frame over two or three water tones, ripples and foam flickering at the edges. The loop is exact: the pattern repeats after speed × frames pixels.
  • Fountain (animated): a jet of water from the outlet point to the landing point (both draggable, with Swap points), on a parabola as high as you choose. One or more jets in a fan, thickness, continuous or drop-by-drop jet, splash and rings widening where the water lands.
  • Lightning (animated): a bolt from the start to the end (at first from the top of the area to the top of the shape), with roughness, branches, core thickness and glow. Each strike lasts two frames (full, then a flicker) and after the last one there is a pause; optionally a new shape for each strike and a flash that brightens the shape.
  • Effects that move the shape (dissolve, shake, bounce): the pixels move from the active layer to the effect layer in the effect's frames, so the original doesn't stay still underneath; the effect layer takes the opacity and blend mode of the active layer. With Shape from all visible layers everything you see moves (for example a body and a crown on different layers). If part of it goes outside the canvas (or the selection, with Draw only inside the selection) the window says so.
  • Frames: an animated effect adds frames after the active one (a static document becomes an animation) with the chosen duration, plus a tag named after the effect. In the new frames the other layers have linked cels pointing to the active frame: touch up the drawing and it changes in all of them. With On the existing frames the effect goes on the active frame and the ones after it, without a tag. Repeating animations loop seamlessly. Animated effects aren't available in sheets, tilesets and fonts.
  • Colours: missing colours are added at the end of the palette (the preview says how many); with Use only the palette colours, or with a locked or linked palette, each colour takes the nearest one. Seed and New seed change the arrangement: the same settings and seed always give the same result.

Hand-drawn spritesheets#

A hand-drawn sheet of items split into cells
A hand-drawn sheet of items split into cells

A Spritesheet document is a single canvas split into cells: useful for items, icons or poses you prefer to draw side by side. Cells have an outline that is always visible, spacing and margin are shaded and the cell under the cursor is highlighted.

  • Sheet → Sheet layout: cell, columns, rows, spacing and margin; any static document can become a sheet too (the drawing is cell 0).
  • Select cell under cursor Ctrl+Alt+A: then copy, transforms and tools work only there.
  • Convert sheet to animation (one cell per frame) and Arrange frames in a sheet.
  • Export sheet with JSON: the PNG as it is (with the scale) and a JSON with one entry per cell.

Frame game data#

Hitboxes, hurtboxes, anchor points and events are drawn right on the frames and end up in the exports, so your game code does not have to know them by heart. They work in static and animation documents.

  1. In the Frame data panel press + and create a type: name (for example hitbox), kind (box, point or event) and colour.
  2. Choose the type in the list and take the Game data tool.
  3. Boxes: drag to create them, drag from inside to move them or from a corner pixel to resize them. Points: click to place or move them. Events: click the canvas, or the box in the panel, to switch them on or off in the frame.
  4. The panel shows how many boxes the frame has, the point coordinates or the event box; below you can fix the numbers of the chosen box or point.
  5. Copy data from previous frame or to the selected frames with the panel buttons.
ToolKeyWhat it does
Game data—Draws the frame's game data with the type chosen in the Frame data panel: boxes (drag; Shift square; drag from inside to move or from a corner to resize), points (click or drag) and events (click to switch them on or off). Right click removes the point or box under the cursor.
  • Data follow the frames when you duplicate, move, paste or flip them or resize the canvas.
  • Events show as coloured diamonds on the thumbnails of the frame strip; with onion skin the boxes of the previous frame are dashed.
  • View → Show game data hides or shows the overlay.
  • Coordinates are in pixels of the whole frame, on the edges between pixels like the pivot; in exports they are multiplied by the scale.

Nine-slice for panels and buttons#

You draw a panel or a button once, small, and the game enlarges it: the corners stay fixed, the edges stretch (or repeat) in one direction only, the centre in both. The four cuts of the nine-slice say where corners and edges end.

  • In static documents and animations the nine-slice applies to the whole document (the frames are the button states: normal, hover, pressed); in a sheet every cell has its own, because an interface sheet holds different panels. Tilesets have none.
  • The Nine-slice tool: a click where there is no nine-slice yet creates one with the cuts at a third; dragging moves the nearest cut (one undo step); the right button removes it. The options bar has Active, the four margins and the horizontal and vertical mode: Stretch, Tile or Fit (repeats a whole number of times, like Godot's axis_stretch).
  • View → Nine-slice shows the cuts as dashed lines with the other tools too.
  • Edit → Nine-slice preview shows the current frame (or the last clicked cell) enlarged to a test width and height, with zoom, computed with the same rules as Godot; margins and modes can be changed there too.
ToolKeyWhat it does
Nine-slice—Marks the nine-slice margins of the document or of the sheet cell: click to create one with the cuts at a third, drag to move the nearest cut, right-click to remove it; margins and modes from the options bar too.Options: On · Left · Top · Right · Bottom · Horizontal: Stretch, Redo, Fit · Vertical: Stretch, Redo, Fit

File → Export for Godot (nine-slice StyleBox) writes the PNG and a StyleBoxTexture .tres with margins, modes and region (one per frame for an animation, name_0.tres…; one per cell with a nine-slice for a sheet, name_column_row.tres), plus optionally name-test.tscn with three NinePatchRect nodes of different sizes. It is also an export target kind and a SpriteriaCli format (--format=godot-stylebox). The spritesheet and sheet JSON carry nineSlice (left, top, right, bottom, h, v) for every frame or cell, in scaled pixels.

Bitmap fonts#

A bitmap font is drawn letter by letter, like a spritesheet: every cell is a character. You export it in BMFont format (.fnt and PNG), which Godot and many other engines read as a font.

  • File → New → Bitmap font: cell size (the largest letter), baseline (rows from the top of the cell), columns and characters: printable ASCII, ASCII plus the accented letters of European languages, or the characters of a text you type. The rows follow the number of characters.
  • On the canvas every cell shows the baseline in orange and its character in the corner; the status bar shows the character under the cursor and its code (U+00E0).
  • The Font panel writes a test text with the document's glyphs while you draw (\n starts a new line). Below are the metrics: baseline, line height, spacing between letters, space width and Monospaced (every letter advances by one cell).
  • Click a cell to choose its character: the panel shows the advance (automatic = rightmost column + 1 + spacing, or a value of your own) and the kerning: type the following character and the correction in pixels (for example AV −1).
  • The panel buttons add characters (new cells at the end, the sheet grows) and remove the chosen one (the following cells move back). Empty glyphs, except the space, are listed in red.

File → Export font (BMFont) writes name.png with the glyphs cropped and packed (in colour, as drawn) and name.fnt in text BMFont with characters, advances, kerning, baseline and line height, all at the chosen scale. In Godot the .fnt imports as a FontFile: assign it to a Label with size = cell height × scale and the Nearest filter. It is also an export target kind and the bmfont format of SpriteriaCli.

Export#

CommandWhat it writes
Export PNG Ctrl+EThe current frame composed, at real size.
Export indexed PNG Ctrl+Shift+EA palette PNG with the same indices as the document (useful for palette-swap shaders).
Export spritesheetA PNG with every frame (or a tag) in a row, column, grid or packed, with spacing, margin, extrusion, trimming of transparent areas and whole scale, plus a JSON in the Aseprite "array" format.
Export animated GIFThe GIF with the frame durations.
Export PNG sequenceOne file per frame: name_000.png, name_001.png…
Export for Godot (SpriteFrames)A Godot 4 .tres resource with the spritesheet next to it (see the Godot section).
Sheet → Export sheet with JSONThe sheet as it is with one JSON entry per cell.
Tileset → Export tileset for Godot / Export map as PNGTileSet, map scene and PNG of the test map.

For every frame the spritesheet JSON contains its position in the sheet, trimming, duration, pivot and, if present, the game data (data with boxes, points, events); meta holds the tags (frameTags), the scale, the data types (dataTypes) and, in isometric mode, the tile geometry. It is UTF-8 without BOM and reads with the importers of the Aseprite format.

Palette variants: the spritesheet, the Godot export and export targets have the Palette variants option: base only, base and all variants (the same files with the variant name at the end: slime.png, slime_blue.png…), a single variant, or the base with the palette swap table: slime_palette.png (row 0 the base, row n variant n, column i colour i) and slime_indices.png, the image with the colour index in the red channel, for a shader that picks the colour from the table. The spritesheet JSON lists the variants in meta.paletteVariants.

Automatic export and command line#

A document can remember where and how to export itself: the export targets. When you save, exports update by themselves.

  • In the export windows with options, tick Update on every save: the export you just made becomes a target.
  • File → Export targets lists the targets with the box to enable them, the files they write, the options and the result of the last export; from here you add (PNG, GIF and sequences too), edit, delete or export at once.
  • On every Save the enabled targets run: each writes all its files or none (first in a temporary folder, then it moves them), and an error does not stop the save. The status bar tells how it went; a click on the error message opens the targets.
  • File → Re-export all redoes the exports without saving. Automatic backups never export.
  • Paths are saved relative to the project: if you move the project folder and the game folder together they keep working. The output folder must exist.

For build scripts there is SpriteriaCli.exe, next to Spriteria.exe: it exports without opening any window and writes the same files as the app, byte for byte.

SpriteriaCli export hero.spriteria
SpriteriaCli export hero.spriteria --target=1,gif --out=build --scale=2
SpriteriaCli export hero.spriteria --format=godot-frames --out=build
SpriteriaCli list hero.spriteria
SpriteriaCli help
OptionMeaning
export without --formatRuns the enabled targets of every file given.
--target=n|kindOnly the given targets, by number (from 1) or kind, several separated by commas and also when disabled.
--out=folderWrites there instead of the target's folder (created if missing).
--scale=nOverrides the scale.
--variant=name|all|basePalette variants to export: one by name, all the base and all of them, base the base only.
--format=kindExport with the default options, even without targets: png, sheet, gif, sequence, sheet-doc, godot-frames, godot-tileset, map-png (with --tag=name for the range).
--format=script:idExport with a script (see Scripts): --format=script:sheet-json; --param=name=value sets a script parameter (may repeat), --script-dir=folder adds a script folder.
listLists the targets and the files they would write.
--lang=it|en|fr|es|deLanguage of the messages (English by default).

Exit codes: 0 success, 1 at least one export failed (or no enabled target), 2 wrong arguments or unreadable file. Written files go to standard output, errors to standard error.

Scripts#

Scripts are small Lua files (.lua) that export the document to formats Spriteria does not know. Spriteria includes a few; yours go in the personal folder %APPDATA%\Spriteria\scripts, and one of yours with the same file name replaces the built-in one.

  • File → Export with a script… picks the script, then its parameters, the scale and the palette variants; with Update on every save the export becomes a target.
  • In File → Export targets every export script appears as the type Script: name, with the Script parameters… button.
  • From the command line: SpriteriaCli export hero.spriteria --format=script:sheet-json --out=build; --script-dir=folder adds a script folder.
  • Scripts cannot open files, start programs or go online: they read the document and write only into the export folder. If a script stops with an error it writes nothing, and the message gives the script name and line.

A script returns a table that describes it, with the function that exports. doc is the document (frames, layers, tags, palette, game data…), out writes the files, params has the declared parameters plus scale, fileName and baseName:

-- %APPDATA%\Spriteria\scripts\frames-txt.lua
return {
  name = "Frames as text",
  kind = "exporter",
  extension = ".txt",
  documents = { "animation" },
  params = { { id = "prefix", kind = "text", default = "frame" } },
  export = function(doc, out, params)
    local lines = {}
    for i, f in ipairs(doc.frames) do
      lines[#lines + 1] = params.prefix .. " " .. i .. ": " .. f.duration .. " ms"
    end
    out:text(params.fileName, table.concat(lines, "\n") .. "\n")
  end,
}

Commands. A script with kind = "command" has the function run(doc, params) and appears in the Script menu. Parameters are asked in a dialog before it starts and remembered for next time. Everything the command changes becomes a single undo step, named after the script. If it takes more than a second a window with Stop appears; an error or a stop leaves the document as it was. doc.activeLayer, doc.activeFrame, doc.primaryColor and doc.secondaryColor tell where you are and with which colours. Lines written with print appear in a window at the end.

-- %APPDATA%\Spriteria\scripts\border.lua
return {
  name = "Frame border",
  kind = "command",
  params = { { id = "color", kind = "color", default = 1, min = 1, max = 255 } },
  run = function(doc, params)
    local l, f = doc.activeLayer, doc.activeFrame
    for x = 0, doc.width - 1 do
      doc:setPixel(l, f, x, 0, params.color)
      doc:setPixel(l, f, x, doc.height - 1, params.color)
    end
  end,
}
MethodWhat it does
doc:setPixel(l, f, x, y, i), doc:setCel(l, f, img [, x, y])Pixels of a cel (layer and frame from 1, x and y from 0, palette index).
doc:addLayer(name [, pos]), deleteLayer, duplicateLayer, moveLayer, setLayer(l, {...})Layers: name, visible, locked, opacity, blend.
doc:addFrame([pos, duration]), duplicateFrame, deleteFrame, moveFrame, setDuration(f, ms)Frames and durations.
doc:addTag(name, from, to [, direction]), deleteTag(t)Animation tags.
doc:addColor(r, g, b [, a]), doc:setColor(i, r, g, b [, a])Palette (not when it is locked).
doc:select(x, y, w, h), selectAll(), deselect(), isSelected(x, y)Selection.

The Script menu also has: Manage scripts (every script, built-in and personal, with its description or error and a button to open the file), Open the scripts folder, Reload scripts (after adding or changing a file).

Scripts: reference#

This section is the complete reference for writing scripts. Scripts are written in Lua 5.4, the same language as Aseprite scripts: a small language you can learn in an afternoon. The fullest examples are the built-in scripts (sheet-json, unity, gamemaker, inbetween): open the scripts folder next to Spriteria.exe, or use Script → Manage scripts and Open the file.

Lua in brief. The lines below show almost everything you need. Lists and positions (frames, layers, tags, colours) count from 1; pixel coordinates from 0, as in images. An error stops the script: error("message", 0) shows only the message, without the code location.

-- a comment runs to the end of the line
local n = 3                      -- local variable (always use local)
local nome = "eroe" .. n         -- .. joins texts: "eroe3"
local lista = { 10, 20, 30 }     -- lists start at 1: lista[1] == 10
local punto = { x = 4, y = 7 }   -- table with fields: punto.x == 4
print(#lista)                    -- # is the length: 3

for i = 1, #lista do             -- from 1 to 3 inclusive
  if lista[i] ~= 20 then         -- ~= means "not equal"
    print(i, lista[i])
  end
end
for i, v in ipairs(lista) do end -- the same, with index and value
for k, v in pairs(punto) do end  -- every field (in any order)

local function doppio(v)         -- function
  return v * 2
end
local a, b = 7 // 2, 7 % 2       -- integer division 3 and remainder 1; 7 / 2 = 3.5
if not punto.z then error("manca z", 0) end  -- nil when the field is missing

The table that describes the script. Every .lua file ends with return { ... }. Spriteria reads the table at start-up (and on Reload) to build menus and lists: the top-level code should only define functions and data.

FieldMeaning
nameName shown. A text or a table of languages: { it = "…", en = "…" } (without the interface language, English is used).
descriptionDescription, like name.
kind"exporter" (exports) or "command" (changes the document).
documentsAllowed document types: "static", "animation", "sheet", "tileset", "font"; without it, all.
extensionExporters only: extension of the main file (default .png).
minVersionMinimum Spriteria version, for example "1.1".
paramsList of parameters (see below).
export(doc, out, params)Exporter: writes the files with out.
run(doc, params)Command: changes doc with its methods; everything becomes a single undo step.

Parameters. Each one is a table with id (its name in params), kind, label (text or a table of languages), default and, depending on the kind, min, max and choices. Spriteria builds the dialog and keeps values within the limits. In exporters params also has scale (the chosen scale), fileName and baseName (main file name with and without extension).

KindValue in params
text, file, folderText (with a browse button for files and folders).
integer, numberInteger or decimal number, between min and max.
booleantrue or false (a check box).
choiceOne of the ids of choices = { { id = "a", label = … }, … } (or choices = { "a", "b" }).
colorPalette index (integer).
layer, tagName of a layer or tag of the document ("" = all frames).

The spriteria module.

NameWhat it does
spriteria.version, spriteria.languageProgram version and interface language ("it", "en"…).
spriteria.image(w, h [, "indexed"|"rgba"])New transparent image (RGBA by default).
spriteria.toHex(r, g, b [, a]), spriteria.fromHex("#RRGGBB")Colours as text and back (fromHex returns r, g, b, a).
spriteria.json.encode(v [, rientro])JSON like the built-in exports; with an indent, on several lines.
spriteria.json.decode(testo)From JSON to tables (objects keep the key order).
spriteria.json.object(), json.array(), json.nullAn object that writes keys in the order you set them, a list (also empty) and the null value. A plain table is a list when it is a sequence or empty, otherwise an object with keys in alphabetical order.

Images. An image is indexed (one palette index per pixel) or RGBA. Images read from the document are copies.

NameWhat it does
img.width, img.height, img.kindSize and kind ("indexed" or "rgba").
img:get(x, y), img:set(x, y, …)One pixel: the index, or r, g, b, a. Outside the image get gives 0 and set does nothing.
img:row(y)One row as a byte string (1 per pixel, or 4: R G B A), fast to read with string.byte.
img:sub(x, y, w, h), img:clone(), img:scaled(n), img:flipped("h"|"v")New images: a rectangle, a copy, enlarged by an integer, flipped.
img:rotated(gradi)Indexed only: rotated clockwise with the editor's rotation; also returns the offset dx, dy.
img:put(src, x, y), img:paste(src, x, y)Copies src (same kind) starting at x, y; paste skips transparent pixels.

The document: fields. They are read when needed and are up to date after every change. In a long loop keep what you read often in a local variable (local frames = doc.frames).

NameWhat it does
doc.kind, doc.width, doc.heightKind (static, animation, sheet, tileset, font) and size in pixels.
doc.palettecount, colors[i] (r, g, b, a, hex, name, as shown with the current variant), groups[i] (name, entries), variants, activeVariant.
doc.layers[i]name, kind (normal, reference, normals), visible, locked, opacity (0–255), blend (normal, multiply, screen); 1 is the bottom layer.
doc.frames[i]duration (ms), mirrored, data (boxes, points, events of the game data).
doc.tags[i]name, from, to, direction (forward, reverse, pingpong), color, facing, mirrorExport.
doc.frameDataTypes, doc.directions, doc.nineSlicesGame data types, direction settings, nine-slices (no cell = the whole document).
doc.pivot, doc.iso, doc.sheet, doc.fontPivot (x, y), isometric grid, sheet (cells) and bitmap font; sheet and font are nil when the document is not one.
doc.selectionRectangle around the selection (x, y, w, h), nil when there is none; for the exact shape doc:isSelected(x, y).
doc.activeLayer, doc.activeFrame, doc.primaryColor, doc.secondaryColorCommands only: where you are and with which colours.

The document: read methods. Call them with a colon: doc:cel(1, 1).

NameWhat it does
doc:cel(livello, frame)The cel as an indexed image (with the palette colours).
doc:compose(frame [, {scale, trim}])The frame composed as in exports (visible layers, no references), RGBA; with trim also the offset x, y.
doc:packSheet({…})The spritesheet as the built-in export. Options: layout (horizontal, vertical, grid, pack), columns, spacing, border, extrude, trim, scale, from, to, normalMap, normalYDown. Returns image, normalImage, width, height and frames[i] with frame, x, y, w, h, cropX, cropY, cropW, cropH, sourceW, sourceH.
doc:isSelected(x, y)True when the pixel is selected (or there is no selection).

Exporter output. Names are relative to the export folder and may contain subfolders (a/b.png); a name that leaves the folder (.., absolute path) is an error. Files go through a temporary folder: if the script stops, nothing is left half-written.

NameWhat it does
out:png(nome, img)PNG with the same encoder as the built-in exports (indexed or RGBA like the image).
out:text(nome, testo)UTF-8 text without BOM, as it is (use \n for new lines).
out:bytes(nome, dati)Any bytes (a Lua string used as a buffer).

Rules and limits. Available libraries are string, table, math, utf8, coroutine and, from os, only clock, time, date, difftime; load accepts text only. There is no io, os.execute, debug, package or dofile: a script cannot open files, start programs or go online. require("lib.ids") loads a module from the script's folder (here lib/ids.lua, used by the built-in scripts for stable GUIDs and UUIDs). Each script has at most 256 MB of memory; a script that takes too long is stopped with Stop. print writes lines shown at the end.

Built-in scriptWhat it does
sheet-jsonExporter: recreates the built-in spritesheet with JSON, byte for byte. The starting point for a new format.
unityExporter: spritesheet with a ready-sliced .meta (pivot, Point filter, pixels per unit) and one .anim per tag; stable GUIDs, so a new export updates the same assets. Export into the project's Assets folder.
gamemakerExporter: writes the sprite straight into a GameMaker project. Choose the project's .yyp as the output file and name the sprite: the script writes sprites/<name>/ (one image per frame, origin from the pivot, durations) and adds the sprite to the resource list. With GameMaker open, the IDE asks to reload the project.
inbetweenCommand In-between frames from the selection: select a part in the active frame and create the frames in which it moves and rotates to the final pose. It is a draft: rotated pixels usually need touching up.

Taking everything into Godot 4#

Animations → SpriteFrames (File → Export for Godot): a .tres resource with the spritesheet PNG next to it. Every tag becomes an animation (reverse lists the frames backwards, ping-pong becomes A B C B), with exact durations; trimming of transparent areas becomes the texture margin. Assign it to an AnimatedSprite2D (with the texture filter set to Nearest for crisp pixels).

The game data are in the resource metadata:

var data = $AnimatedSprite2D.sprite_frames.get_meta("frame_data")
var frame = data[$AnimatedSprite2D.animation][$AnimatedSprite2D.frame]
for box in frame["boxes"]:
    print(box["type"], box["rect"])      # Rect2
print(frame["points"].get("hand"))         # Vector2
if &"step" in frame["events"]:
    play_footstep()
var pivot = $AnimatedSprite2D.sprite_frames.get_meta("pivot")

Tilesets → TileSet (Tileset → Export tileset for Godot): the PNG atlas, a TileSet resource with terrain sets, terrains and bits of every tile, probability, collisions per physics layer, data layers and animated tiles, plus optionally a .tscn scene with the test map in a TileMapLayer. Godot's terrain painting picks the same tiles as Spriteria.

Tilesets for Tiled#

Tileset → Export the tileset for Tiled writes, for Tiled 1.10 and later, the PNG atlas, an external .tsx tileset and, optionally, the .tmx test map that uses it with a relative path. The window is the same as the Godot export: folder, file name, scale, map and Update on every save.

SpriteriaIn Tiled
Terrain setsWang set Set N: corners and sides = mixed, corners = corner, sides = edge; one Wang colour per terrain, with name and colour. Godot's centre terrain does not exist in Tiled.
ProbabilityTile probability.
CollisionsPolygons in the tile's object group, with the physics_layer property (the physics layer number).
Data layersTile properties with the same name and type (bool, int, float, string).
Animated tilesAnimation with the frame durations.
Test mapCSV tile layer; flips and transposes in the high bits of the IDs, as Tiled uses them.

Projects for LDtk#

Tileset → Export the tileset for LDtk writes the PNG atlas and a .ldtk project (LDtk 1.5.3 format) that opens directly in LDtk. If something is lost or approximated, a summary says so before the export window (folder, name, scale, Update on every save).

  • The tileset with grid, spacing and margin; tile data goes into LDtk's custom data, one JSON object per tile ({"cost":2}).
  • For each corners and sides or sides terrain set, an IntGrid layer Set N with one value per terrain (name and colour) and the autotiling rules: one 3 × 3 rule per tile, derived from its bits, the way Spriteria picks tiles (a corner counts only if both neighbouring sides have the same terrain). Tiles with the same bits share a rule and LDtk picks one at random.
  • A level with the test map: the IntGrid values of the cells and the tiles Spriteria already chose; hand-painted cells go into a Tiles tile layer.

RPG Maker tilesets#

File → Import RPG Maker tilesets converts RPG Maker MV, MZ, VX and VX Ace tilesets in bulk (and the same layout at 16 px that many packs include): for each file it writes a ready-to-use Godot TileSet resource and a Spriteria tileset document, with autotiling terrains, animated water and a test map. The files are not opened: open them when you need them.

  1. Add files or Add folder (with Include subfolders). Each file shows the recognised type, cell and art upscaling, or why it is skipped.
  2. If needed, set Format (MV/MZ 48 px, VX/VX Ace 32 px, 16 px) and Type for the selected file: A1 and A2 have the same size, so if the name does not say which one it is, you choose.
  3. Choose the Destination (it cannot lie inside a folder being imported), the tile size and which files to write, then Import. The outcome appears next to each file; Stop interrupts between one file and the next.
TypeBecomes
A1Animated water (4 frames, 0 1 2 1, 500 ms) and decorations: "corners and sides" terrains; waterfalls: "sides" terrains.
A2Floors: 47 tiles per autotile, "corners and sides" terrains (Match corners and sides in Godot).
A3Roofs and walls: 16 tiles per autotile, "sides" terrains (Match sides), without rotating the quarters: bricks and windows stay upright.
A4Roofs as floors (47 tiles) and walls as walls (16 tiles), in two terrain sets.
A5, B–EPlain tiles, in the same grid as the file.
  • The type is read from the file name (TileA2_…, Outside_A4, World_B…) and checked against the size; the cell comes from the size.
  • Size of the art: the art is often drawn at 16 px and upscaled ×2 or ×3; the import notices and, if you want, brings it back to its original size without loss. With RPG Maker cell the tiles stay 32 or 48 px.
  • Skip duplicates: the MV, VX Ace and 16 px versions of the same pack, brought back to the art size, are identical; only the first is written, and the outcome says which file it duplicates.
  • Outputs keep the source subfolders: <destination>/<subfolder>/<name>.png, .tres, .spriteria and, optionally, -map.tscn with the test map.
  • The Godot resource uses the original pixels, including semi-transparent shadows and more than 255 colours. The Spriteria document is indexed: beyond 255 colours they are reduced and partial alpha becomes opaque or transparent (the outcome says so).
  • Passability and other flags (they live in the RPG Maker project database), character sheets ($, !) and the RPG Maker XP and 2000/2003 formats are not imported.

The same import from the command line (options: --recursive, --format=auto|48|32|16, --type=A1…A5|B…E, --size=art|cell, --no-godot, --no-spriteria, --scene, --keep-duplicates):

SpriteriaCli import-rpgmaker "Tile Pack" --out=godot/tiles --recursive
SpriteriaCli import-rpgmaker World_A2.png --out=godot/tiles --size=cell --scene

Aseprite files#

File → Open also reads Aseprite files (.aseprite, .ase, from version 1.2), as does a file passed on the command line: the document opens in a new untitled tab, so Save creates a .spriteria project and the Aseprite file stays as it is. A single frame gives a static sprite, several frames an animation.

AsepriteIn Spriteria
IndexedSame palette, with colour names, and same indices (the file's transparent index becomes 0).
RGB and greyscalePalette taken from the colours (up to 255); alpha below 128 = transparent, the rest opaque.
GroupsRemoved: layers are named group/layer and take the group's visibility and opacity.
Tilemap layers, linked celsNormal layers with the tiles drawn; linked cels become copies.
Blend modesNormal, Multiply and Screen stay; the others become Normal.
TagsTags with direction and colour; reverse ping-pong becomes ping-pong.
SlicesGame data boxes named after the slice, in the frames where the slice is visible.
GridFirst rectangular grid, turned off.

Whatever has no equivalent (cel opacity and z-index, slice centre and pivot, external files, tag repeats…) is listed in a summary after opening.

File → Export to Aseprite writes an indexed file: palette with colour names, layers with visibility, lock, opacity and blend mode, frames with their durations, tags with their colours. Game data boxes become slices (hitbox, hitbox 2…): reopening the file in Spriteria gives back boxes of the same type. Before exporting, a summary says what is not written: points and events, pivot, grids after the first, palette variants and groups, sheet layout and tileset data (these become a static image).

Grids and snap#

View → Grids and snap manages the document's rectangular grids: as many as you like, each with a name, cell, offset, colour and style (solid line, dashed, dots at the crossings). They are overlays only: they never end up in exports.

  • Snap Ctrl+Shift+G: tools snap to the pixel, the cell centre or the vertices of a grid (or of the isometric grid). Hold S to suspend it for a moment.
  • Show grids hides them all at once without losing them.

Isometric mode#

A block drawn in isometric mode, with planes and levels
A block drawn in isometric mode, with planes and levels

View → Isometric mode turns on the diamond grid: 2:1 or 1:1 projection, tile width, height of a level, origin and light direction (from the 32 × 16, 64 × 32, 16 × 8 or 32 × 32 presets). The isometric algorithms are pixel-perfect: lines follow the projection's regular pattern and tiles fit together with no gaps.

  • Drawing plane: top, left or right; N cycles through them. Height level with Page Up and Page Down.
  • The three face colours (light, middle, dark) come from a palette group or are picked by hand in the isometric bar.
  • Isometric guide axes show the x, y and z axes for the cell under the cursor; Tiling preview repeats the tile to check the seams.
  • The pivot goes into the JSON (with the tile geometry) to sort objects by depth in the game.
ToolKeyWhat it does
Isometric line—Line along the isometric grid axes, with snap; Shift constrains it to the nearest axis.Options: Thickness
Isometric rectangle—Diamond on the top plane or parallelogram on the side planes, sized in cells.Options: Mode: Outline, Filled, Outline and fill
Isometric polygon—Polygon with its vertices snapped to the grid of the active plane.Options: Mode: Outline, Filled
Isometric ellipse—Ellipse projected on the active plane; Shift for a circle.Options: Mode: Outline, Filled
Base tile—Fills a cell (or an area of cells) of the top plane with a solid diamond, with an optional outline.Options: Outline
Face fill—Fills the face under the cursor; with automatic shading it uses the face colour (top, left, right) according to the light.Options: Tolerance · Auto shading
Block—Box: drag for width and depth, the height is in the options. The three faces take the three face colours.Options: Height · Outline
Cylinder—Column with an elliptic base and a shaded side.Options: Height
Stairs and ramp—Stairs of N steps or a ramp, in one of the four directions of the projection.Options: Shape: Scale, Ramp · Steps · Height · Rises towards: ↘, ↖, ↙, ↗
Cast shadow—Shadow cast on the ground according to the document's light direction.Options: Length
Diamond selection—Selects a cell or an area of cells as a diamond, to cut and copy tiles.Options: Mode: Replace, Add, Subtract, Intersect
Face selection—Magic wand limited to the face under the cursor.Options: Mode: Replace, Add, Subtract, Intersect · Tolerance
Isometric move—Moves the selection (or the whole layer) by a step of cells: left and right arrows along x, up and down along y, Shift+↑ and Shift+↓ along the vertical z; dragging snaps to cells too.Options: Step (cells)
Pivot—Sets the document's anchor point (shown as a crosshair), written into the JSON and the Godot resources; Esc goes back to the default, the centre of the tile's base.

Tilesets and terrains#

A Blob 47 tileset with the terrain bits
A Blob 47 tileset with the terrain bits

A tileset is an atlas of tiles of the same size. Besides drawing them, you tell how they join each other with terrains, so autotiling (in Spriteria and in Godot) picks by itself the right tile for every cell.

ModeWhat decides the tileTiles with one terrain
Corners (Match Corners)The 4 corners16
Sides (Match Sides)The 4 sides16
Blob (Match Corners and Sides)Sides and corners; a corner counts only if both nearby sides do47
  • The Corners 16, Sides 16 and Blob 47 templates create the atlas with the bits already set: on tiles still empty the overlay shows the shape to draw.
  • Terrains panel: the current terrain set and its terrains (colour and name); the Tileset menu creates them, changes their mode and deletes them.
  • Wrap drawing inside the tile: what goes out of an edge comes back from the opposite side, for seamless repeating tiles.
  • Generate tiles from pieces: Blob 47 from five drawn tiles, Corners 16 and Sides 16 by rotation; a starting point to retouch.
  • Check seams marks the edges that do not match with a red strip; Combination coverage lists the missing combinations and creates them with a click, and reports duplicates and tiles without bits.
  • Collisions: physics layers (layer and mask), polygons with the Collision tool or Collisions from transparency. Data layers (yes/no, integer, decimal, text) with the values in the Tile panel.
  • Tile panel: the current tile repeated or in its context, probability, frames and durations of animated tiles, collisions and data. Transformed copy copies a tile rotated or mirrored with its bits and collisions.
ToolKeyWhat it does
Terrain bits—Click the zones of a tile (centre, sides, corners) to assign the current terrain; right click to clear them; dragging paints several tiles.
Collision—Draws the tile's collision polygons for the chosen physics layer: a dragged rectangle or a polygon by clicks. Pressing on a vertex drags it, a right click inside a polygon removes it.Options: Shape: Rectangle, Polygon · Physics layer
Properties brush—Right click a source tile, then click or drag over the others: copies probability, data, collisions, animation or everything.Options: Copy: Probability, Data, Collisions, Animation, Everything

The Tileset menu also has: Tileset layout, Show terrains, New terrain set, Terrain set mode, Delete terrain set, New terrain, Edit terrain, Delete terrain, Show collisions, New physics layer, Delete a physics layer, New data layer, Delete a data layer.

Terrain generator#

In tilesets, Tileset → Generate terrain… rebuilds the tileset from scratch, like a new document, and draws all its tiles: choose the template (Blob 47, Corners 16, Sides 16) and the terrain name; the previous pixels, bits, terrains, collisions, data and test map are deleted (Undo brings them back). Seams match by construction: a starting point in a few seconds to retouch by hand.

  • Types (37): natural terrains — dry dirt, desert, beach, grass on dirt, grass on dark grass, dirt with curb, grass with curb, flower meadow, forest floor, autumn lawn, moss, snow, ice, water, swamp, mud, lava, rock, gravel, ploughed field, wheat field — and pavings — bricks, cobblestones, slabs, asphalt, sidewalk, herringbone bricks, basket-weave bricks, hexagonal tiles, wooden planks, terracotta, marble, checkered floor, crazy paving, metal plate, concrete, setts. Each type comes with a fitting outside (water on sand, lava on rock, fields on grass) that you can swap for any material.
  • Walls (20): wall faces seen from the front, for platformers and room walls. The whole terrain area is wall face with the material texture; a coping on top, a plinth at the bottom (a skirting board indoors), darker corners at the sides, and autotiling closes corners and openings. Exterior: brick, red brick, concrete, ashlar, dry stone, clapboard, stucco, corrugated metal, logs, cinder blocks. Interior: striped, diamond and floral wallpaper, wood paneling, wainscoting, painted plaster, bathroom tiles, castle stone, whitewashed bricks, bookshelf. In the dialog choose the Category first (natural terrain, paving, exterior walls, interior walls), then the Type.
  • Parameters: base colour (the program derives a 5-tone ramp from it, with cooler shadows and warmer lights), contrast, texture detail, decorations (flowers, tufts, stones, cracks), edge roughness, rounding, terrain extent, curb, light, seed and full tile variants.
  • Outside: transparent, or filled with a second terrain (type and colour) drawn around the first. With a filled outside the full outside tile goes into a free cell (or a new row of the sheet) without a terrain, and the test map starts covered with it: paint the terrain with the brush and the edges match. Bits outside the terrain stay empty, as in the template.
  • Colours: the palette starts from scratch too and holds only the terrain ramps; with Use only the palette colours (or with a locked or linked palette) it stays as it is and every tone takes the nearest colour.
  • The preview shows a test map filled by autotiling or the atlas, and tells how many colours are added. Generate writes into the active layer: a single undo step.

Test map#

The test map filled at random with autotiling
The test map filled at random with autotiling

Every tileset has a test map (Test map tab, Ctrl+M) to see the tiles at work. It is saved in the project and its changes undo like the others. The Tiles for the map panel picks the tile (or a rectangle of tiles as a pattern) and the terrains.

ToolKeyWhat it does
Map brushBPaints on the map the tile (or tile pattern) chosen in the Tiles for the map panel; it can flip, transpose or pick at random among several tiles.Options: Random · Scatter % · Flip ↔ · Flip ↕ · Transpose
Map eraserEClears map cells.
Map bucketGFills contiguous equal cells (or all of them) with the brush.Options: Contiguous · Random · Scatter %
Map pickerIPicks the tile of a cell, or of a dragged area as a pattern.
Map lineLLine of cells with the brush.Options: Random · Scatter %
Map rectangleRRectangle of cells with the brush.Options: Random · Scatter %
Map selectionMSelects cells: Copy, Cut, Paste and Delete in the Edit menu work on them, and the copy becomes the brush.
Terrain brushTPaints the current terrain: autotiling picks the right tiles. Connect joins the surrounding cells, Path only the stroke just painted.Options: Mode: Connect, Path
  • Fill map randomly creates a random terrain field and composes it with autotiling: cells with a missing combination get a red marker.
  • Map size, Clear map, Mark missing combinations, Play animations, Export map as PNG.
  • Right click erases with every map tool.

Preferences, language and shortcuts#

Edit → Preferences Ctrl+,:

  • Interface language: Italian, English, French, Spanish, German or the system one; it changes at once, with no restart.
  • Undo memory (in MB, per document).
  • Pixel grid visible and its opacity, document grids visible, transparency checkerboard dark, medium or light.
  • Automatic backup copy and every how many minutes; Reopen the documents of the last session.

Edit → Keyboard shortcuts changes the shortcut of every menu command and the letter of every tool; you can go back to the defaults at any time. Preferences live in %APPDATA%\Spriteria.

Menus and keyboard shortcuts#

Every menu command with its default shortcut. Tool letters are in the tool tables above.

Without a mouse. Drawing on the canvas needs a mouse or a pen; everything else can also be done from the keyboard:

  • Alt or F10 open the menus: arrows to move, Enter to run, Esc to close.
  • Find a command (Ctrl+Shift+P, also in the ? menu) lists every command and tool: type part of the name (accents and case don't matter, and the Italian names work in any language), choose with the arrows and run with Enter.
  • F6 and Shift+F6 move between the areas of the window: options bar, tools, canvas, panels, frame strip. The area with the focus has a blue border.
  • In the tools the arrows choose the previous or next tool; in the layers up and down choose the layer, Space shows or hides it, L locks it, F2 renames it; in the palette the arrows choose the primary colour (with Shift the secondary) and Enter edits it; in the frame strip left, right, Home and End choose the frame.
  • In the panels Tab reaches the header: Space collapses or opens the panel, Ctrl+↑ / Ctrl+↓ move it.
  • In dialogs the first field already has the focus, Tab follows the reading order, Enter confirms and Esc cancels.
File
NewCtrl+N
OpenCtrl+O
Import PNG imageCtrl+I
Open PNG as spritesheet
Import a level as tileset
Import spritesheet
Import PNG sequence
Import RPG Maker tilesets
SaveCtrl+S
Save asCtrl+Shift+S
Export PNGCtrl+E
Export indexed PNGCtrl+Shift+E
Export spritesheet
Export animated GIF
Export PNG sequence
Export for Godot (SpriteFrames)
Export for Godot (nine-slice StyleBox)
Export font (BMFont)
Export to Aseprite
Export with a script
Export targets
Re-export all
Batch operations
Undo the last batch operation
Exit
Edit
UndoCtrl+Z
RedoCtrl+Y
CutCtrl+X
CopyCtrl+C
PasteCtrl+V
Paste into a new layerCtrl+Shift+V
Clear
Select allCtrl+A
DeselectCtrl+D
Invert selectionCtrl+Shift+I
Canvas size
Outline
Nine-slice preview
PreferencesCtrl+,
Keyboard shortcuts
Transform › Flip horizontallyShift+H
Transform › Flip verticallyShift+V
Transform › Rotate 90° clockwiseShift+R
Transform › Rotate 90° counter-clockwise
Transform › Rotate 180°
Transform › Scale ×2
Transform › Scale ×3
Transform › Scale ×4
Transform › Wrap-around scroll
View
Zoom in
Zoom out
Fit to windowCtrl+0
Pixel gridCtrl+G
Onion skinCtrl+Shift+O
Onion skin settings
Show game data
Nine-slice
Grids and snap
Show grids
SnapCtrl+Shift+G
Isometric mode
Check › Normal colours
Check › Values (greyscale)Ctrl+Alt+V
Check › Silhouette
Check › Protanopia
Check › Deuteranopia
Check › Tritanopia
Check › Achromatopsia
Isolated pixels
Test light › Off
Test light › From the north
Test light › From the north-east
Test light › From the east
Test light › From the south-east
Test light › From the south
Test light › From the south-west
Test light › From the west
Test light › From the north-west
Isometric guide axes
Isometric symmetry (swaps faces)
Tiling preview
Symmetry › None
Symmetry › Vertical axis (left and right)
Symmetry › Horizontal axis (top and bottom)
Symmetry › Both axes
Symmetry › Axis position
Layer
New layerCtrl+Shift+N
New reference layer from file
New reference layer from the clipboard
Reference position and scale
New normal layer
Fill flat (normals)
Duplicate layer
Delete layer
Rename layer
Move up
Move down
Merge down
Merge visible layers
Flatten
Animation
Play / stopCtrl+P
First frame
Previous frame
Next frame
Last frame
New frameAlt+N
Duplicate selected framesAlt+D
Duplicate selected frames linked
Delete selected frames
Move earlier
Move later
Duration
Copy selected frames
Paste frames
Copy previous frame hereAlt+C
Flip frames horizontally
Flip frames vertically
Directions
Recognise directions from tag names
New tag from selected frames
Edit tag
Delete tag
Convert to animation
Effects
Static › Glow
Static › Sparkle
Static › Rim light
Static › Highlights
Static › Smoke
Static › Friction sparks
Static › Cast shadow
Static › Mirror reflection
Static › Hole
Static › Magnifying glass
Animated › Sparkle
Animated › Pulse
Animated › Particles
Animated › Smoke
Animated › Fire
Animated › Hit flash
Animated › Dissolve
Animated › Shake
Animated › Bounce
Animated › Hole opening
Animated › Hole closing
Animated › Flowing water
Animated › Fountain
Animated › Lightning
Repeat last effect
Sheet
Sheet layout
Select cell under cursorCtrl+Alt+A
Convert sheet to animation
Arrange frames in a sheet
Export sheet with JSON
Tileset
Tileset layout
Wrap drawing inside the tile
Show terrains
New terrain set
Terrain set mode
Delete terrain set
New terrain
Edit terrain
Delete terrain
Check seams
Combination coverage
Generate tiles from pieces
Generate terrain
Transformed copy
Show collisions
Collisions from transparency
New physics layer
Delete a physics layer
New data layer
Delete a data layer
Test mapCtrl+M
Map size
Fill map randomly
Clear map
Mark missing combinations
Play animations
Export map as PNG
Export tileset for Godot
Export the tileset for Tiled
Export the tileset for LDtk
Palette
Add colour
Duplicate colour
Edit colour
Rename colour
Remove colour
New group from primary to secondary
Rename group
Sort group from dark to light
Delete group
Palette properties
Palette locked
New variant
Rename variant
Delete variant
Link to a palette file
Reload palette from file
Unlink palette
Palette libraryCtrl+L
Save to library
Import palette
Extract from an image
Export palette
Script
Manage scripts
Open the scripts folder
Reload scripts
Window
Project folder
Next tabCtrl+Tab
Previous tabCtrl+Shift+Tab
CloseCtrl+W
Close others
Close all
Reset panel layout
?
GuideF1
Find a commandCtrl+Shift+P
Buy me a beer
About Spriteria
Script
In-between frames from the selection

Fixed keys, the same for every tool:

Space (held)Pan the view with the mouse
Middle buttonPans the view
Middle button on a tabCloses the document
WheelZooms in and out
+ −Zooms in and out
Alt (held)Temporary eyedropper
Right clickDraws with the secondary colour
XSwaps primary and secondary colours
, .Previous and next primary colour
; :Previous and next secondary colour
ShiftConstrains lines and shapes (angles, proportions)
Enter / EscConfirms or cancels the current operation
Double clickCloses polygons and curves (like Enter)
ArrowsMove the selection or the content being moved by one pixel
DelClears the selection
Alt+← Alt+→Previous and next frame
Ctrl+Alt+arrowsShift frame content
S (held)Suspends snapping
NChanges the isometric plane
Page Up / Page DownHigher or lower isometric level
Up / DownHeight of blocks and solids while dragging
Shift+Up / DownMoves vertically with the isometric move tool
Alt / F10Opens the menus: arrows to choose, Enter to run
F6 / Shift+F6Next or previous area of the window
Tab / Shift+TabNext or previous control
Arrows (tools)Previous or next tool
Up / Down (layers)Layer above or below; Space visibility, L lock, F2 rename
Arrows (palette)Primary colour; with Shift the secondary; Enter edits it
← → Home End (frames)Previous, next, first, last frame
Space / Ctrl+Up / Down (panels)Opens or collapses the panel; moves it

The ? menu also has: Buy me a beer, About Spriteria. The beer mug button at the right end of the options bar asks whether you want to support the developer with a donation and opens the donation page on the website only if you answer Yes.

File formats#

FormatUse
.spriteriaThe project: readable JSON with compressed pixels. Every version of Spriteria opens the projects of earlier versions.
PNGImport and export: RGBA or indexed; every kind of PNG is read, including interlaced and palette ones.
GIFAnimation export with frame durations.
JSONSpritesheet and sheet metadata in the Aseprite "array" format, with pivot, tags and game data.
.gpl, .hexGIMP palettes and hex colour lists; a PNG can be a palette too. In .gpl files Spriteria also keeps bits per channel, groups and variants (in comments other programs ignore).
.tres, .tscnGodot 4 resources and scenes: TileSet, SpriteFrames, test map.
.aseprite, .aseAseprite files: they open and export, with a summary of what the other format does not keep.
.tsx, .tmxTiled tilesets and maps (export).
.ldtkLDtk projects (export).
.luaSpriteria scripts (Lua 5.4): exporters used from the export dialogs, export targets and SpriteriaCli.