Pixel art games

Sprite Sheets and Texture Atlases for Pixel Art Games

A sprite sheet packs the frames of one character or object into a single image, and a texture atlas packs many sprites from across the game into shared textures. For pixel art, both work well when you keep frames on a consistent grid or export exact frame data, add padding and extrusion so neighbors never bleed into each other, import with nearest-neighbor filtering and no lossy compression, and group sprites by what appears on screen together.

This guide covers the practical side: how to lay frames out, how to export them, which import settings matter in Unity and Godot, and how to organize atlases as the game grows. It is the pipeline work we do on every project in our pixel art game development services, and getting it right early saves a painful re-import later.

Sprite sheet or texture atlas: what is the difference?

The terms overlap, and engines use them loosely. A useful working definition:

  • Sprite sheet: one image holding the animation frames for one subject, such as a fighter's idle, run, attack and hurt cycles. Artists author and export it.
  • Texture atlas: one or more large textures holding many unrelated sprites, packed by a tool or the engine to reduce texture switches. Engineers usually own it.

You often use both. Artists export clean per-character sheets, and the engine packs those into atlases at build time. Keeping the two concerns separate means an artist can redraw one character without touching the packing of everything else.

Grid sheets versus packed sheets

There are two common ways to lay out a sprite sheet, and each has a place.

LayoutHow it worksStrengthsWeaknesses
Fixed gridEvery frame occupies a cell of the same sizeEasy to slice in any engine; frame positions are predictable; pivots stay consistentWastes space when frames vary a lot in size
Packed with data fileFrames are trimmed and packed tightly; a JSON file lists each frame's rectangle and offsetSmaller textures; handles mixed frame sizes wellNeeds an importer that reads the data; offsets must be respected or sprites jitter

For a small character set with similar frame sizes, a fixed grid is the simplest thing that works. For large games, characters with wide attack frames, or anything targeting mobile memory budgets, packed sheets with a data file pay off. Whatever you choose, use one convention across the whole project.

Padding, extrusion and texture bleeding

Texture bleeding is the most common sprite sheet bug in pixel art games. It shows up as thin lines of color from a neighboring frame along a sprite's edge, usually only at certain camera positions or zoom levels. It happens when the GPU samples a texel just outside the frame's rectangle, which can occur with filtering, mipmaps or sub-pixel positions.

Three settings prevent it:

  • Padding (spacing): empty pixels between frames, so a stray sample lands on transparency rather than another sprite.
  • Extrusion: duplicating each frame's edge pixels outward by one pixel or more. This matters most for tiles and opaque sprites, where a transparent gap would show as a seam.
  • Border: empty space around the whole sheet, which helps with some packers and compression formats.

Pair those with the camera and filtering advice in how to keep pixel art crisp. Padding treats the symptom; snapping sprites and the camera to the pixel grid removes many of the causes.

Exporting from Aseprite and similar tools

Aseprite is the most common tool for pixel art animation, and its sprite sheet export covers what most games need. Other editors and packers such as TexturePacker offer similar options under different names. A reliable export setup:

  1. Name animations with tags in the source file (idle, run, attack, hurt). Tags can be written to the data file so the engine knows where each animation starts and ends.
  2. Choose the layout: by rows per tag for grid sheets, or packed for tight sheets.
  3. Export a JSON data file alongside the PNG whenever frames are trimmed or packed.
  4. Set padding and, for tiles or edge-to-edge sprites, extrusion.
  5. Keep frame durations in the source file if your engine importer can read them, so timing lives with the art.
  6. Script the export with the command line interface, so every artist produces identical output and a build can re-export everything.

Keep the source files (.aseprite or equivalent) in version control next to the exports. The PNG is a build artifact; the source file is the asset. For animation timing and readability, see pixel art animation for games.

Pivots and consistent frame origins

Sprites jitter when each frame's origin is in a different place. A character's feet should sit on the same pixel in every frame of an idle loop, even when a sword swing makes the frame wider.

With grid sheets, keep the character anchored to the same position in every cell and set one pivot for the whole sheet, usually at the feet. With trimmed, packed sheets, the data file records how much transparent space was removed from each frame; your importer must apply that offset. If your engine's importer ignores it, either disable trimming or write a small import script that applies the offsets.

Fighting and action games often need more than a pivot: hitboxes, hurtboxes and attachment points such as a hand position for a weapon. Store those as data next to the animation, for example on a separate layer or in slices exported to JSON, so designers can tune them without editing code.

Import settings in Unity and Godot

Most pixel art import problems come down to a few settings. Set them as project defaults so new assets arrive correct.

Unity

  • Texture Type: Sprite (2D and UI); Sprite Mode: Multiple for sheets, then slice in the Sprite Editor by grid or by imported data.
  • Filter Mode: Point (no filter).
  • Compression: None, or a lossless option. Block compression formats smear pixel art.
  • Generate Mip Maps: off for sprites drawn at fixed scales.
  • Pixels Per Unit: the same value for every sprite, matched to your tile size.
  • Use Sprite Atlas assets to pack sprites into atlases at build time, with padding set in the atlas settings.

Godot

  • Set the default canvas texture filter to Nearest in Project Settings, or per node where needed.
  • Import PNGs as lossless and leave mipmaps off for 2D sprites.
  • Use Sprite2D with frame counts for simple grid sheets, or AnimatedSprite2D with a SpriteFrames resource for named animations.
  • Use AtlasTexture resources or an importer plugin when you work with packed sheets and JSON data.

Engine options change between versions, so confirm names against the current documentation for your version. If you are still choosing an engine, our Godot vs Unity comparison for pixel art covers the wider trade-offs.

Organizing atlases as the game grows

Atlases reduce texture switches, which helps the renderer batch draws together. They only help when sprites drawn together live in the same atlas. Group by what appears on screen at the same time:

  • One atlas for the HUD and common UI.
  • One per character or per group of characters that share scenes.
  • One per level or biome for tiles and props.
  • Effects and particles that appear everywhere in a shared atlas.

Avoid one giant atlas for everything. It forces the whole game's art into memory at once and can exceed the maximum texture size some devices support. That limit varies by hardware and graphics API, so check it for your lowest target device rather than assuming.

A sprite pipeline checklist

  • One frame size convention or a packed format with data files, used project-wide.
  • Padding on every sheet; extrusion on tiles and edge-to-edge sprites.
  • Consistent pivots, with trim offsets applied on import.
  • Point or nearest filtering, no lossy compression, no mipmaps for fixed-scale sprites.
  • Animation tags and frame durations exported from the source file.
  • Hitboxes and attachment points stored as data with the animation.
  • Scripted, repeatable export so anyone can rebuild all sheets.
  • Atlases grouped by what is on screen together, sized for the weakest target device.

Common mistakes

  • Exporting by hand. Manual exports drift: one artist adds padding, another forgets. A script removes the guesswork.
  • Trimming without offsets. Characters wobble on every frame change, and the bug gets blamed on animation.
  • Compressing sprite textures. Lossy GPU formats save memory but blur hard pixel edges and shift palette colors.
  • Mixing pixel densities. A sprite drawn at a different scale stands out immediately. Pick your sizes first, as covered in choosing a resolution and sprite size.

When to bring in a studio

If your game is a handful of characters and a tileset, the defaults above will carry you a long way. A studio helps when the asset count climbs, several artists contribute, you target low-memory phones and the browser at once, or hitbox and animation data need tooling so designers can iterate without engineers.

paxl.co builds pixel art games with this pipeline in place from the first sprint; our own platform fighter, Ninja Fighters, is rendered with HTML5 canvas. A typical project takes 3–4 months from kickoff to launch, and we scope each one in a short paid discovery sprint. See our pixel art game development page for how we work.

FAQ

Do sprite sheet dimensions need to be powers of two?

Not for most modern engines and GPUs, which handle other sizes for sprites. Power-of-two sizes can still matter for some compression formats, mipmaps or very old hardware. Check your engine's documentation for the platforms you target.

How much padding should I add between frames?

A couple of pixels of padding plus one pixel of extrusion for opaque or tiling sprites solves bleeding in most pixel art games. If you scale atlases down or use mipmaps you need more, which is one reason to avoid both for fixed-scale pixel art.

Should each animation be a separate image?

You can export per animation during production, since it keeps files small and diffs clear. Let the engine pack them into atlases at build time so the renderer still benefits from batching.

Planning something like this?

See how paxl.co handles pixel art game development, or tell us about your project and we will reply within two working days.

Keep reading