Pixel art for games
Pixel art is cheap to run and quick to read, but a game needs a lot of it, all in one style: characters with many animations, enemies, props, tiles, effects. Here is what to decide first, how to get the art into an engine without blur, and where it can come from when you are not a full-time artist.
Decide these first
Four choices shape every sprite you will make. Make them before the first character, and write them down:
- The base resolution: how many art pixels the screen shows, such as 320×180 or 640×360.
- The sprite size: how tall the hero is in pixels. Everything else is measured against it.
- The palette: the fixed colours every sprite, tile and button is drawn with.
- The view: side, top-down, three-quarter or isometric, and how many directions a character faces.
Changing any of them halfway through means redrawing.
Sizes and resolution
Pick a base resolution that scales by a whole number to common screens: 320×180 is 6× to 1920×1080, 640×360 is 3×. Then size the art for it. A 32 px hero on a 320×180 screen stands at 18 % of its height; on 640×360, at 9 %. Keep one pixel size for everything: a sprite scaled up 2× next to one at 1× gives mixels. The sprite sizes chart has the numbers, and the genre guides give sizes for platformers, top-down RPGs, roguelikes, shmups and more.
Palettes
A shared palette is what makes art from different days, and different artists, look like one game. Take 16 to 32 colours, as ramps from dark to light, and keep a few bright colours only for what the player must notice. How to make a pixel art palette goes step by step.
Animation
Plan the list before drawing. A typical hero needs idle, walk, run, jump, attack, hit and death, each from every side it faces: 4 sides for most top-down games, 8 for smooth diagonals, 1 for a side-scroller whose engine flips the sprite. An enemy needs fewer. Most pixel-art games play animations at 8 to 12 frames a second. How to animate pixel art has frame counts for each, and the walk cycle guide shows the most common one.
Sprite sheets
Engines load animation frames from a sprite sheet: one image with every frame on it, and data saying where each frame is, how long it lasts and where the sprite’s feet are. What is a sprite sheet covers the layouts, the JSON and the pivot.
Getting pixel art into an engine
The rule in every engine is the same: no filtering, no compression, whole-number scaling.
| Engine | Settings that keep pixels sharp |
|---|---|
| Godot 4 | Texture filter Nearest (per node, or as the project default); a viewport stretch mode with integer scaling; AnimatedSprite2D with a SpriteFrames resource |
| Unity | Filter Mode Point, Compression None, Pixels Per Unit matching your tile size, and the Pixel Perfect Camera |
| GameMaker | sprites imported as strips or cut from a grid; interpolation between pixels off; a view and port at a whole-number scale |
Godot 4 8-direction sprites and 3D to pixel art in Unity go through each engine in detail.
Where the art comes from
- Draw it. The most control, and the slowest. Good for a strong hand-made style, few characters and few directions.
- Free and paid packs. Fast, but packs by different artists rarely match: different sizes, palettes and outlines. Keep to one artist’s packs, or recolour them to your palette.
- The free Pixor library. Over a thousand CC0 game assets: creatures, pickups, weapons, vehicles, props and buildings, each as a 3D model, a Blender file and pixel-art sprite sheets. CC0 means you can use them in any game, sell the game, and change them, with no credit needed. Because each comes with its model, you can render it again at your own size, sides and palette.
- Render it from 3D. Model and animate once, then render every side and every size as pixel art. This is how pre-rendered sprites have been made since Donkey Kong Country, and how Dead Cells makes its characters. It pays off when you need many directions, many characters sharing animations, or frequent changes.
Making it from 3D with Pixor
Pixor turns 3D models (glTF, GLB, FBX, OBJ, MagicaVoxel) and their animations into pixel-art sprite sheets:
- One scale for every model. Give the cameras one Pixels/m, and every model renders at the same pixel size, in proportion.
- Every side at once. Ring round the model makes 4, 8, 16 or 32 cameras, one per side, on one sheet.
- One look and palette for the whole game: a Style with your palette, saved as a kit, draws every model the same way.
- Animations ready to use. A model’s own clips, Mixamo clips, library clips for any humanoid skeleton, and the Gait node for creatures with legs and no animation.
- Engine files. A PNG sheet with JSON, an Aseprite file, a Godot
SpriteFramesresource or a ready Godot scene, GIFs, normal maps for 2D lighting. - Batch renders.
pxr batch models/ --ring 8 --export all -o out/renders a folder of models, for a build script.
Start with your first sprite in five minutes, or try the free browser demo, which imports a model and writes a PNG sheet.
Related
Questions
What size should pixel art be for a game?
Pick a base resolution that scales by a whole number to 1920×1080, such as 320×180 or 640×360, then size the hero for it: 16 to 32 px tall for most games, 48 to 64 px when animation and detail are the point.
Is pixel art easier than other art for games?
Each sprite is quicker, but a game needs hundreds of frames in one style, and every pixel shows. Small sizes, a fixed palette and reused animations keep the workload sane.
Where can I get free pixel art for my game?
Pixor's library at pixor.art/library has over a thousand CC0 assets, each a 3D model, a Blender file and pixel-art sprite sheets, free for any game with no credit needed. itch.io and OpenGameArt also have many free packs; check each one's licence.
Why does my pixel art look blurry in Godot or Unity?
The engine is filtering the texture or scaling it by an uneven amount. Set the texture filter to nearest (Point in Unity), turn compression off, and scale the game by a whole number.