AI 2D Game Asset Generation: Sprites, Tilesets, and Icons (2026)
AI 2D game asset generation that actually fits a solo dev's workflow means generating sprites, icons, and tiles from inside your agent, without switching tabs or buying a Stable Diffusion setup. This article covers how to do that with AgentBrush: which presets to use for which asset types, how to get transparent PNGs ready for your engine, how to keep a character consistent across a sprite set, and where the workflow breaks down honestly.
Every prompt below is runnable. Paste it into Claude or Cursor with AgentBrush connected and it lands in your project folder.
Character sprites with the pixel_art preset
The pixel_art preset is built for this. It instructs gpt-image-2 to produce clean blocky pixel art rather than a painterly or realistic output, and the results import reliably into most 2D engines because they are small, flat, and edge-defined.
Here is the full asset workflow end to end: generate the sprite in pixel art, tweak one detail with the mask editor, then remove the background for an engine-ready transparent PNG. The reason to split generate and remove is that gpt-image-2 does not reliably output a true alpha channel at generation time. Generate first, remove last, and you get a real transparent PNG every time.
Step 1: generate the sprite.
A robot explorer character sprite, idle pose, facing left, on a flat white background.
Chunky 32x32 pixel art style, bold outline, simple palette of blue and silver.
preset: pixel_art · quality: medium · size: square
Step 2: tweak one detail with the mask editor.
You rarely nail every detail on the first generation. Instead of re-rolling the whole sprite and losing everything you liked, open the mask editor, paint over just the region you want to change, and describe the edit. Here we mask the top of the helmet and ask for a pair of horns. Everything outside the mask stays pixel-identical.
The full region-edit flow is in the mask editor walkthrough.
Step 3: remove the background.
Remove the background from the edited sprite.
The removal runs locally, costs 0 tokens, and returns a PNG with a real alpha channel. Drop it straight into Unity, Godot, Phaser, or whatever engine you are using. There is nothing to configure.
The transparent-PNG workflow is covered in depth in generating transparent-background PNGs with AI.
Keeping a character consistent across a sprite set
The single hardest part of AI game art is getting the same character to look the same across multiple images. Without a LoRA or a fine-tune, re-describing the character in every prompt gets you variants, not a consistent sprite sheet.
The practical answer is the reference-image feature in AgentBrush. Once you have a first sprite you are happy with, pass it as a reference_image_paths input to subsequent calls. The model uses your existing art as a visual anchor, and the result is noticeably more stable than re-prompting cold.
Generating the base sprite (once):
A robot explorer character sprite, idle pose, facing left, flat white background.
Chunky pixel art, bold outline, blue and silver palette, 32x32 style.
preset: pixel_art · quality: high · size: square
Adding a run-cycle frame, anchored to the reference:
Using the reference image: the robot explorer sprite I just generated.
Draw the same robot in a running pose, one foot forward, same palette and outline style.
preset: pixel_art · quality: high · size: square
A hurt/flash frame:
Using the reference image: the robot explorer sprite.
Draw the same robot with arms raised, knocked-back pose, same art style.
preset: pixel_art · quality: high · size: square
You are not going to get frame-perfect animation this way (see the caveats section), but you will get a visually coherent set you can iterate on, which beats starting from scratch on each pose.
Isometric tiles with the isometric preset
For top-down strategy games, dungeon crawlers, or anything with a grid map, the isometric preset renders objects on a 2:1 diamond grid without you having to describe the projection yourself.
A basic ground tile set:
A set of four isometric ground tiles: grass, stone path, sand, and dark soil.
Each tile fits a standard isometric diamond grid. Flat colors, clean edges, no characters.
preset: isometric · quality: medium · size: square
An isometric dungeon room (scene-level art, not a repeating tile):
An isometric view of a small stone dungeon room. Stone-block walls, a single iron door,
a torch on the left wall, a cracked floor tile in the center. No characters.
preset: isometric · quality: high · size: square
Inventory icons and UI elements
Item icons are one of the highest-volume asset types in a game project, and they are also the most tractable AI output: small, contained, self-explanatory. A single generation call can produce a usable sword icon, potion, key, or currency symbol.
A batch of item icons (describe each in one prompt):
Five inventory item icons on a white background: a bronze sword, a blue mana potion,
a skeleton key, a gold coin, and a wooden shield. Flat 2D illustration style, matching
palette and line weight, each icon centered in its own square.
preset: flat_illustration · quality: high · size: square
UI chrome elements:
A set of UI button frames for a fantasy RPG: normal, hover, and pressed states.
Parchment texture, dark ink border, no text. Consistent width, horizontal layout.
preset: flat_illustration · quality: medium · size: landscape 3:1
Generating button states as a single image in a horizontal strip lets you slice them in your editor the same way you would a sprite sheet from a human artist.
Where this breaks down
Animation frames are the current hard limit. You can generate a small collection of key poses using the reference workflow above, but sequential animation with consistent motion arcs is not something a single-image model does reliably. For animation, the output is a reference sketch you are still going to hand-off or interpolate, not a finished game-ready asset.
Exact tile seam alignment is also imprecise. The model does not know your tile size at the pixel level, and isometric diamond edges are rarely a perfect grid match. Expect to do minor cropping, resizing, or edge cleanup in your sprite editor. The art direction is there; the pixel-perfect edge alignment is not.
Palette lock is another limit. You can describe a palette in the prompt and AgentBrush will respect the general hue range, but holding an exact six-color palette with specific hex values across thirty sprites is not reliable. If strict palette unification matters (say, for a retro CGA or NES aesthetic), plan to run a quantization step afterward.
Finally, very small pixel art (below roughly 16x16 effective resolution) tends to look like downscaled illustration rather than true pixel art. The model is better at large, clear sprites than tiny icons. Use the medium or high quality tier for small sprites so the detail stays.
Fitting this into your agent workflow
The key advantage of generating assets from inside Claude or Cursor is that your agent already knows your project. You can say "generate a sprite for the enemy type we just designed" and get a result that fits the design decision you made three messages ago, with the file saved directly into your project assets folder.
Tokens cost 1 (low), 5 (medium), or 20 (high) per image at 1024x1024. Background removal always costs 0. A full sprite set at medium quality: ten sprites at 5 tokens each is 50 tokens, half a Starter month. Iteration is cheap, so draft at low or medium, approve the direction, then regenerate the final assets at high.
For plans: Starter is $6.99/month for 100 tokens, Pro is $14.99 for 600, Power is $29.99 for 1,300 with overage at $0.04 per token. Most game asset sessions fit well inside the Pro tier.
New to AgentBrush? Setup takes about two minutes: see the getting started guide.
Related reading
- AI pixel art generator for game devs: deeper coverage of the pixel_art preset, palette control, and sprite sheet composition.
- Best AI game asset generators for indie devs: how AgentBrush compares to other tools in your pipeline.
- Generating transparent-background PNGs with AI: the full two-step remove-background workflow.
FAQ
Can I generate a full sprite sheet (all animation frames in one image)? Yes, but with a caveat. You can ask for multiple frames in a single image, laid out as a strip or grid, and gpt-image-2 will make a good-faith attempt. The frame-to-frame consistency within a single generated image is better than across separate calls. The limit is that the motion arcs will not be mechanically consistent, so treat it as a rough key-frame sheet you refine rather than a finished animation.
What is the best preset for pixel art game assets?
pixel_art for sprites and tiles. isometric for anything on a grid projection. flat_illustration for UI icons and HUD elements that need a cleaner, higher-resolution look. If you want something painterly for concept art or cutscenes, realistic works there too.
How do I keep the same character consistent across multiple images?
Pass your first approved sprite as a reference image in subsequent calls using reference_image_paths. The model anchors visually to the input rather than re-rolling from the description alone. It is not as tight as a fine-tune, but it is meaningfully more stable than re-prompting cold.
Does background removal work on pixel art? Yes, and it works well. Pixel art has sharp, well-defined edges, which is the ideal case for on-device removal. The resulting PNG will have clean pixel-level edges rather than the soft anti-aliased cut you sometimes get with photorealistic subjects.
Ready to generate your first sprite set? Connect AgentBrush to your agent and paste any of the prompts above. The file lands in your project folder in seconds.