Generating game sprites with AI
How to go from a one-line idea to a sprite you can ship: picking the size, writing a prompt the model can act on, and turning one sprite into reskins, a matching set or its other facings. Every result is a real pixel grid you keep editing in the pixel art editor, and it can go straight into your game with two-way sync. For heroes and enemies, see the pixel art character generator; for the whole path from prompt to engine, the game asset workflow.
Real results from one-line prompts
Each image comes from a single generation, shown exactly as it was delivered and enlarged with hard pixel edges. The caption has the size, the subject type and the full prompt.

“blue mana crystal”

“red health potion in a round glass bottle with a cork”

“wooden treasure chest with gold trim”

“orange fox rogue wearing a green hood, holding a dagger”

“armored knight with a blue cape and a longsword, facing the camera”

“small wooden market stall with a striped red and white awning, top-down view”

“mossy cobblestone”
Pick Texture, right under New, for ground, walls and other surfaces (it shows when your style has a texture image). MagicPixel asks the model for a texture that tiles, and the result fills the whole artboard instead of sitting on a transparent background.
Workflows
Generate your first sprite
- 1Open the editor, choose Create with AI → New, and pick a size: 64, 128, 256, 512 or 1024. Pick the size your game draws the sprite at.
- 2Describe the subject in a few words.
- 3Leave density on Quality for a few clean results, or switch to Quantity for more options on the same sheet.
- 4Keep the result you like. Every result is its own artboard, so delete the rest or keep them as alternates.
Build a matching set
- 1Start from one asset you're happy with, generated or imported. It sets the style for the rest.
- 2Select it and use Variants. Reskin keeps the pose and swaps materials, Set makes matching siblings (swords, potions, trees), and Prompted takes your own instruction.
- 3Keep one artboard size across a set so nothing ends up at a different pixel scale.
- 4Save the base as a component if several sprites reuse it.
Facings and animation
- 1Use Directions to turn one sprite into its other facings, four ways or eight with diagonals. Tell it which way the source faces.
- 2Use Animate for motion frames such as idle, walk or attack, or Keyframes for a few key poses with in-betweens.
- 3Name frame ranges as clips so the sprite sheet export carries them into your engine.
Turning one sprite into more
These ran on results from the generations above. Each result is added as a new artboard next to its source, at the source's size, so a set stays at one pixel scale.
Treasure chest (source)
Frozen ice
Mossy and overgrown
Cursed, glowing purple
Blue knight (source)
Gold
Bronze
Shadow
Fox rogue, facing south (source)
East
West
North
Health potion (source)
Poison flask
Converting an existing image to pixel art
Already have a painting, a render or a soft-edged sprite? Import it, then use Create with AI → Convert to Pixel Art. It redraws the image as clean pixel art while keeping its proportions, pose and layout, and you choose how outlines are handled. Select up to four artboards to convert them together on one sheet so they come out consistent. For a simple cleanup without AI, the editor's Edit dialog can downscale art to a pixel size, remove the background and snap it to a palette; see editing AI pixel art.
What makes the difference
Set the size in the panel, not the prompt
Writing "16x16 sprite" in the prompt doesn't change the output. The size you pick in New decides it, and Variants, Edit and Directions keep the source's size.
Name the subject first
Lead with the thing itself, then the camera (side view, top-down, 3/4) if it matters. Every example on this page is one short line. Long lists of adjectives before the subject tend to give generic art.
A reference beats more words
A reference image sets palette, outline weight and proportions more firmly than a prompt can. Use a real sprite at a readable size. A tiny thumbnail gives the model very little to go on.
Quality vs Quantity splits one sheet
Both draw on the same sheet. Quality gives each result more room, which suits detailed subjects. Quantity fits more results on it, which suits browsing ideas or simple icons.
Small sprites need simple shapes
At 64×64 there's little room for fine detail. Ask for one clear shape, like the mana crystal above, rather than a long list of details that won't fit.
Get one sprite right before expanding it
Settle the palette, shape and outline on one artboard before adding facings, variants or frames. Fixing style across a whole set takes far longer than fixing one sprite.
If a prompt gets blocked
Rephrase the subject or swap the reference instead of retrying the same text.
The examples on this page were made by an AI agent connected over MagicPixel's MCP server, which runs the same New, Variants, Replace and Directions modes as the editor. More prompting advice is in AI prompting tips.
