Ludo.ai
Article11 min read

AI Game Art in One Style: A Pixel Art Build in Godot

Bix's mine, running in Godot. Every picture, every move and every sound was made with Ludo.ai. The level and the code are ours. Turn the sound on.

The version of this game we were ready to publish matched on every measure we had: one art style, every picture converted to fit one 320 x 180 screen, one palette of 32 colors. The same cut showed a fresh run of the hero's prompt in the app, and the review compared the two moles:

"These ones actually look better than the one you used for the game."
"Now I get why the character doesn't look as nice as the generated ones."
"Overall, I think the characters should dictate the pixel size so that they look great."
Miguel, from our team: three notes from one review
The hero of the 320 by 180 build, 45 game pixels tall with a head of 26 by 26 pixels, next to the hero of the final 640 by 360 game, 72 game pixels tall with a head of 52 by 52 pixels and far more detail
Left, the hero of that build, from our first pick. Right, the Bix in the finished game, from that fresh run.

He was right. We had sized the hero to fit the screen. It should have been the other way round, and the rebuild that followed is this post: one small game, a mole called Bix in a crystal mine, with its prompts, measurements and what it cost in Ludo credits.


How do you keep AI pixel art consistent in a game?

To keep AI-generated game art in one style, lock three things in order: one art style, one pixel size and one color palette. One art style: pick a hero picture, then make every other asset with the same Art Style setting and the same style words at the end of the prompt. One pixel size: let the hero's pixels set the size of a game pixel, and put every other picture on that grid. One color palette: recolor the whole set to one short list of colors, starting from the hero's. In Bix's mine that was Ludo's 16-Bit Pixel style, a 640 x 360 screen and 48 colors.

For the first lock in full, see consistent game art style with AI and the guide how to keep a consistent art style across AI game assets. This post is one build, and spends most of its time on the other two.

The four-minute version, published November 15, 2026 on our YouTube channel. This post adds the build behind it and the numbers.

Why AI game art looks mismatched

The same eight game assets twice: a mole miner, a bat, a beetle, a mine cart, a gem, a heart, a ground strip and a cave. On the left each is in a different art style, hand-painted, cel-shaded or pixel art. On the right is the matched pixel art set from the finished game.
Nothing on the left is a bad picture. They just do not belong together.

Each picture is made on its own, and nothing tells one request what the last one looked like, so the look has to be something you carry from prompt to prompt. Our general guide to using AI-generated art in your games covers the wider workflow.


One art style for every asset: an anchor picture and one line of style words

Everything hangs on one picture. Ours is Bix, a Sprite made in the Image Generator with the Art Style on 16-Bit Pixel and the Perspective on Side-Scroll. His prompt ends with the style words, and so does every prompt after it: "16-bit pixel art, limited palette, warm amber, rust red and deep teal palette, dark outlines".

Ludo's Image Generator in Generate New mode: image type Sprite, the description of Bix ending with the style words, Art Style set to 16-Bit Pixel and Perspective set to Side-Scroll
The whole style guide is on this screen: an image type, two filters and the last line of the prompt.
The same mole miner in Hand-Painted, Cel-Shaded and 16-Bit Pixel styles, and a fourth from a later run of the pixel prompt, outlined as the Bix in the game
Keep the result that reads at a glance and faces the way your game scrolls.

For the other seven assets the Art Style and the style words stay, and only the subject and the image type change: two enemies and a mine cart as Sprites, a heart as a UI Element, a gem as an Item Icon, the ground as a Horizontal Tiling Sprite and the cave as a Horizontal Background.

The eight pictures in the game grouped by image type: four sprites, a UI element, an item icon, a horizontal tiling sprite and a horizontal background, with the pixel block size of each
The small grey numbers are the next section.

Do you need a style reference for every asset? We made all seven assets both ways, with the Art Style and the words, and in Generate with Style with a hero as the reference image. In 16-Bit Pixel the sprites matched the hero's palette equally well either way; the ones made from the reference were closer in lightness (a gap of 5.1 against 10.0), and backgrounds came back closer to the hero's light and saturation. So the cave is a Generate with Style picture, made from our first hero pick, and the other seven are not.

Two tips from the enemies. State the facing in the prompt: we asked for the bat "seen from the side in profile, flying toward the left" and all eight results came back that way. And check an enemy against the ground it walks on. Contrast ratio is how much lighter one thing is than another, where 1 to 1 is no difference: one Edit Image pass ("make the beetle's shell bright icy cyan crystal... keep its shape, pose and dark outlines") took the beetle from 1.57 to 1 against the cave to 2.02 to 1.

A bat seen from the front next to a bat in profile flying left, and two game screenshots of a beetle on the cave floor: the rust-shelled beetle blends into the rock, the icy blue one stands out
The review note on the rust beetle: "the beetle is hard to see".

One pixel size: let the hero set the game pixel

Pixel art is drawn in blocks: squares of several file pixels that act as one pixel of the art. A picture has a clean grid when every block is the same size and they all line up. Ludo's 16-Bit Pixel style gives every picture a clean grid sized for that picture. We measured the files: 6 pixel blocks on Bix, the bat and the cart, 8 on the ground, 12 on the heart and the gem.

Top: equal-size crops of Bix, the ground and the heart as generated, with grid lines showing clean pixel blocks of 6, 8 and 12 pixels. Bottom: the same three in the game, every block the same size.
A game wants the bottom row: one block size for everything on screen.

A game pixel is the smallest square the game draws, and every block of every picture should be exactly one. Pixel artists call the alternative mixels, mixed pixel sizes on one screen, and the cure is the usual one: snap every picture to one grid, scale only with nearest neighbor, and leave the rest to integer scaling in the engine.

The question is which grid. We first picked the screen, 320 x 180, and converted every picture to fit, the hero included. The rebuild picked the hero. Bix is 768 pixels across on 6 pixel blocks, so 128 game pixels, and the screen where that looks right is 640 x 360. A picture already on a clean grid just shrinks by its block size, with the free Ludo toolbox:

Terminal
$ ludo toolbox image scale bix.png --by 1/6
{"image":"ludo-output/bix.png","width":128,"height":128,"scale":"1/6"}

We checked it: scaled back up six times, the 128 pixel Bix differs from the generation in 0 pixels. The hero in the game is the hero Ludo drew.

Everything else follows him. Clean grids shrink by their own block size. Where a picture should come out at a different size, Convert to Pixel Art does it, and its Pixel Size is how many pixels of the picture become one game pixel. The cart has 6 pixel blocks like Bix, and we converted it at 12 to size it to the set: half as large each way, 63 x 64.

Ludo's Image Generator in Convert to Pixel Art mode with the mine cart loaded, Pixel Size set to 12 px and the hint: each pixel-art pixel covers 12 by 12 pixels of the image, about 64 by 64 pixel-art pixels
Convert to Pixel Art on the cart. It used no credits in this project.
AssetHow it got onto Bix's gridSize in the game
Bix (hero) and the batLudo toolbox, scale by 1/6128 x 128
Heart and gemLudo toolbox, scale by 1/1264 x 64
GroundLudo toolbox, scale by 1/8196 x 80
Mine cartLudo Convert to Pixel Art, 12 px63 x 64
BeetleLudo Convert to Pixel Art, 12 px63 x 63
CaveLudo Convert to Pixel Art, sized to fill the screen's height884 x 359

If you are still choosing a generator for this kind of art, we keep a comparison of AI pixel art generators.


One color palette for the whole pixel art set

A pixel art set usually shares a few dozen colors. Ours, on one grid, still held 74,323, nearly all in the cave; Bix alone had 128. A short script of ours built one palette of 48: 24 of Bix's own colors first, then reserved colors, a few kept in the list for one asset, then 15 from everything else. The toolbox moves every pixel of a picture to its nearest color in that list:

Terminal
$ ludo toolbox image recolor bat.png --palette pal_bix48.hex
{"image":"ludo-output/bat.png","width":128,"height":128,
 "colors":{"before":128,"after":28}}
The 48 palette colors as swatches in five groups: 24 from Bix, 3 bat purples, 3 gem blues, 3 beetle ice blues and 15 from the rest. Below, a close-up of the bat's body before recoloring, recolored with no reserved colors, where it turns red-brown, and recolored with three reserved purples.
A shared palette is made from what there is most of, and there is very little bat.

The reserved colors are the tip. Purple covers 45% of the bat. On 48 shared colors with none reserved it fell to 19%; with three purples of its own it is 44%. Bix barely moves: his average color shift is 3.5, on a scale where about 2 is the smallest difference most people can see. If your game already has a palette, use that file: recolor takes any .hex list.


Pixel art in Godot: the settings that keep every block the same size

  • Viewport 640 x 360, window 1920 x 1080.
  • Stretch Mode viewport and Scale Mode integer, so every game pixel is exactly 3 x 3 screen pixels.
  • Default Texture Filter Nearest.
  • Every picture drawn at its own size, never scaled in the scene.

Scroll speeds matter too: move the camera and the background a whole number of game pixels each frame (ours is 2), or the layers shudder against each other. For the import steps, see exporting sprites to Unity, Godot and GameMaker.

The Godot script and the level are ours, 498 lines, and there is no build you can play: the script drives Bix, deciding when he swings, jumps and gets hit.


Pixel art sprite animation that stays on the grid

Bix's moves come from the Sprite Generator: his picture as the first frame, the Forge Pixel model, a few words for the motion, and Sprite Size on True Size, which returns frames at the input's own size, so one file pixel is still one block. One recolor then puts the frames on the palette. The pixel art sprites guide has the settings.

Bix's walk, jump, swing and flinch, the bat's flight and the beetle's crawl playing side by side from the sprite sheets used in the game
The six animations in the game, playing from their sheets.

The attack took the most review. "The mole is not holding the axe pick" was answered with a Change Pose first (the Attack Ready preset plus "gripping the pickaxe handle in both hands"). "The attack animation is weak" was answered with a larger canvas, so the arc had room, and the motion "overhead pickaxe smash, big wind-up, both hands on the handle". Then:

"It turns into a scythe at the end of the animation."
Miguel, on the swing we had just called finished

At game speed none of us had seen it. The tip: check a thin prop frame by frame at four times its size, and touch up single frames with a masked Edit Image, an edit limited to the area you paint over, with a good frame as the reference. The end of Bix's swing was touched up that way.

The sound is Ludo's as well: twelve short effects and a cave ambiance from the Audio Generator, one line of description each.

Gem pops out
0.6 s
Gem pickup
0.5 s
Bat screech
0.7 s
Beetle skitter
0.6 s
Cave ambiance
10.0 s

Check before import: a consistency checklist for AI game art

three art stylesone art style
The set reads as one gamePut the whole set on one sheet, next to the hero.Ludo Image Generator: one Art Style and the same style words on every prompt.
at game size
The background's light suits the heroStand the hero on the background at game size.Ludo Generate with Style, with the hero as Image 1.
from the frontin profile
Enemies face the hero and stand outStand each one on the rows it walks on.State the facing in the prompt. Ludo Edit Image changes a color and keeps the shape.
as generatedon one grid
One pixel size on screenMeasure each picture's block size. Here: Bix's helmet beside the heart, enlarged.Bring everything to the hero's block: ludo toolbox image scale for clean grids, Ludo Convert to Pixel Art for the rest.
the 48 colors
One paletteCount the colors in each picture: ludo toolbox image paletteBuild one palette from the hero's colors, then ludo toolbox image recolor
none reservedthree reserved
Small bright assets keep their colorCompare each one before and after recoloring.Reserve a few palette colors for them.
playing, true size
Animation stays on the gridThe frame size equals the input picture's size.Ludo Sprite Generator: Forge Pixel at True Size, then recolor.
one frame at 4x
Props hold their shapeStep through every frame at 4x. Do not judge the clip at speed.A masked Ludo Edit Image on single frames.
two copies, end to end
The ground repeats cleanlyScore the join (ours: 0.47, seamless): ludo toolbox image repeatLudo Horizontal Tiling Sprite, checked again after any change.

For how a solo developer held one look across a much larger cast, read Veridium: Final Pulse; for a side by side of tools, our roundup of AI image generators for game art.


What the art, animation and sound cost in Ludo credits

StageGenerationsLudo credits
Comparing three styles: Bix in each, seven assets made two ways in each, two test animations (6 credits)4752.5
First game build: the profile bat, a walk and a flap, first sounds, two music beds for the video1024
Gameplay pass: poses, the icy beetle, seven moves, nine sound effects1945
The same steps run in the app for the video (the Bix in the game came from these)8about 9
Rebuild around Bix's pixel size: six moves, a cave run10about 23.5
Attack animation iterations18about 61
Art, animation and sound112about 215

About 60 of those credits are in the finished game: eight pictures, six animations, twelve sound effects and the ambiance. The rest went on comparing three styles and trying alternative moves. The app runs were read off a shared credit counter, so those rows are approximate, and the receipt leaves out the video's narration voice. Whatever you make with Ludo, you own.


Questions people ask

Why does my AI pixel art have different pixel sizes? A pixel style sizes its grid to suit each picture, so a character, a tile and an icon can each sit on a different block size. Measure the hero's block, make that one game pixel, and bring the others to it: shrink clean grids by their block size, convert the rest.

What screen resolution should a pixel art game use? Work backwards from the hero. Ours is 128 game pixels across, and 640 x 360 gives him the right share of a screen that scales by exactly 3 to 1080p and by 6 to 4K.

How many colors should a pixel art palette have? Enough that the hero does not visibly change. We measured 32 and 48 built around Bix; at 32 the beetle shifted more than twice as far, so we used 48.

Does this only work for pixel art? The first lock works for any style, and our comparison covered Hand-Painted and Cel-Shaded too. The pixel size and palette locks are pixel art jobs.

Make a hero, then make everything else match.

Try Ludo free

Your next asset is one prompt away

30 free credits to start. No credit card required.

Keep reading

All posts