Art Bootcamp Notes · 23 · Pixel art

Pixel Art for Beginners in Aseprite: Canvas, Colour, Layers, Export

Why pixel art works, then Aseprite from zero: canvas and tools, selection, light and shadow colours, palettes, layers, outlines and exporting.

LIPAI WANG By LIPAI WANG · Chapter 23 of his book Art Is a Puzzle You Can Solve

I’ve been in love with pixel art for as long as I can remember. In this chapter I want to tell you why, and then get you set up in the tool I use for it, Aseprite, so you can start placing pixels yourself.

We’ll start from nothing: a new file, a canvas size, a preview window, and the pencil, bucket, eraser and line tools. Then we’ll look at selection, including one tool I find genuinely amazing, the Magic Wand. After that comes colour: why pixel art uses so few colours, how to add your own shades, palette presets, and a few colour problems that catch people out. Then layers, a couple of shortcuts that will save you a lot of clicking, the automatic outline, and finally exporting, which is harder than it looks.

Everything here is built around one little drawing. A plain red ball becomes a character with antennae and sunglasses, and by the end of the chapter he’s a finished little monster, ready to go into a game. It’s a freehand drawing, not yet a precise design. The precise part starts in the chapters that follow.

From player to creator

As a kid, I was a player. I spent hours and hours on games. That’s a long time ago, and back then the hardware wasn’t enough, so the games used tiny squares to build an entire universe. That was a hardware restriction.

Today I’ve gone from being just a player to being a creator myself. I develop games, I develop apps, I teach, I’ve done tons of things. And of all the creation I’m doing, the part I’m proudest of is the pixel art, because I make all the pixel art for my game myself. Each character, each background, each animation, each monster skill is handcrafted. When you’ve created something like that, you can say, “I am so proud of that,” because every pixel, literally every pixel, you created yourself.

I draw tons of inspiration from the classics. A lot of my imagination was shaped by the pixel-art games I played as a kid: Super Mario Bros., which is a long-time classic, and The Legend of Zelda. You may know Zelda now as a 3D, open-world-ish franchise, but my childhood was A Link to the Past, with its 45-degree angle style of pixel art. Then Mega Man, Metroid, Street Fighter, and Metal Slug, my long-time favourite. They’re like a routine in my mind.

Because of the limited hardware, the limited colours, the limited RAM, the limited CPU, everything was limited in that age. And still the creators, the developers, the amazing artists of that time managed to create worlds that felt so vibrant when you played them. Like an endless world. That’s the power of pixel art.

Nowadays there are no hardware restrictions, so you might say pixel art may just die out. It didn’t. Pixel art didn’t die with the old consoles; it evolved. Today we have masterpieces like Stardew Valley, Undertale and Shovel Knight, and tons of amazing pixel-art games made by big studios, by small groups of indie developers, or even by just one person. You can do that. These games prove that pixel art isn’t just a nostalgia that old folks like me have. It’s a living, breathing, evolving art form that still inspires millions of people. That’s the reason I want to share it with you.

Pixel art as a filter

I’m an old person. Maybe because I work with a computer all the time, my eyes can’t stand glaring light at night, so when I drive at night I wear these yellow-tinted glasses as a filter for my eyes. It dampens the glare and makes things more contrasty.

I don’t want to get too theatrical, but that’s how I see pixel art nowadays. It’s a kind of filter. When I drive at night I see too much glare and too little contrast, and the filter adds a little contrast and damps the glare, so I still see the world, but in a stylish manner. Pixel art is still a world, a really huge universe, but it’s like a pixelated layer laid over reality.

I know kids nowadays think of pixel art as really low resolution. But as a game developer and as a digital artist myself, I know the mental process you go through, and the so-called low resolution actually forces us to simplify, to generalise the concept. Put yourself on a 16 by 16 canvas and you have to make intentional pixel choices: this pixel, this pixel, this pixel. You simplify, generalise, get rid of everything, leave the most essential part, and then place that pixel on the canvas intentionally. Exactly because you can’t show every detail, you capture only the essence. In that limitation you extract the essence of anything in this world, and I think that’s where the art is born.

I also do all sorts of painting and drawing, and it’s like a painting after you’ve added a little light and shadow to it. Pixel art strips reality all the way down, to its soul. That’s my feeling about pixel art: it’s a filter that strips everything down to the simplest form.

Getting Aseprite

The tool we’re using is Aseprite. I think it’s the ultimate tool for this. It’s constantly evolving, and it’s a kind of industry standard for pixel artists: ask almost any indie developer of a pixel-art game and they’re going to recommend it. It’s really simple to learn but really hard to master. It’s easy to use, and also powerful enough to handle professional, pro-level projects.

If you haven’t got it yet, it’s really simple: search for Aseprite and download it. I believe there’s a trial version you can try things out with, but the trial version won’t save files. The default way to buy it is through Steam, I believe. The advantage of Steam is that you keep getting updates, just like a game you bought on Steam.

If you don’t want to pay anything, Aseprite is also on GitHub. The source code is open, so you can download it and try things out, but you have to build it yourself. I haven’t read its terms of service, so that’s just for your information. I strongly recommend that you buy it: it will save you a lot of hassle. It’s nearly free anyway. It’s a few bucks, and it’s a one-time purchase, not a monthly recurring payment. I also draw in Photoshop, and there you pay month by month, so it’s a recurring outlay of your money.

If you’re making pixel art specifically, I think Aseprite is better than Photoshop. I’ve used Photoshop a lot, and for this job I prefer Aseprite. It isn’t only a dedicated tool for pixel art: once you’ve designed a character or an item, you can animate it in the same program, and the latest version can also build tilesets and tilemaps for designing levels. Learning it takes patience and a permissive environment for your creative process, but given enough time, I’m confident you can finish any project with it.

Choosing a canvas size: start with 32 by 32

Let’s start by creating a project: make a new file. The normal size is something like 32 by 32 pixels. That’s literally 32 by 32 pixels, which is tiny compared to the hundreds of thousands of pixels you might use in Photoshop, and it’s intended to be that way. I strongly recommend this size, especially if you’re a beginner like me.

Some people stick with 16 by 16, and some are crazy enough to go to 8 by 8. Let me show you why that isn’t a good idea. This is my personal opinion: fewer pixels does not mean easier. I think of difficulty as a function of size. As the canvas shrinks, the difficulty first goes down, and then it increases sharply.

Create an 8 by 8 canvas and you’ll see it’s really, really small. To zoom in you need a middle wheel. (I’m using Apple’s Magic Mouse, which is why I mention it.) Even a 2-pixel pencil is too big here, so shrink it to 1. Count it out: 1, 2, 3, 4, 5, 6, 7, 8. That’s the whole width.

It’s really hard to create anything at this size. It reminds me of a gadget I had as a kid that you could put in your pocket, a half-Pokémon sort of thing. At 8 by 8 you have to conceptualise hugely and make everything really simple. Draw a circle and it nearly fills the whole screen. Add the eyes, and there’s no room left for a mouth. You either draw a tiny one or leave it out altogether, and there’s no space at all for a body or hands. So 8 by 8, in my opinion, is the most difficult challenge of all.

16 by 16 gives you some leeway. You can have a head, a smile, and a body with hands and legs. But it’s still hard, and you have to plan it, because you can’t just sketch and then modify. You also have to make the head extremely big. That’s out of necessity: the head is where we show different directions and different expressions, so it has to be big. Shrink it by just one pixel and you can’t tell the eyes from the mouth any more. It’s like wearing a shackle and trying to dance. You don’t have even one pixel of wiggle room, because if you move anything one little bit, it connects to the eye.

So my recommendation is to start with 32 by 32. It gives you a lot of leeway, but it’s still small enough that you focus on the whole design rather than the details.

The other settings in the new-file window:

  • Colour mode. Use RGBA: red, green, blue and alpha. Unless you’re going completely hardcore and want greyscale or indexed colour, RGBA is the one I recommend.
  • Background. Choose transparent, because you’re going to use the art in a game.
  • Advanced options. You can choose a pixel ratio, where one pixel has different proportions. Square, one by one, is good enough. It’s the convention, unless you’re designing something extremely creative.

When you open a 32 by 32 canvas it still looks tiny at first, but zoom in and you’ll see how much more creative space you have. You can design the head and the hair, give the face an expression, and draw a body with arms and legs instead of a stick man. You can draw him walking, standing or chilling, and even give him a cape. The width doubled and the height doubled, so it’s four times the creative space.

Try it. Make an 8 by 8, a 16 by 16 and a 32 by 32 canvas and draw a little character on each, as I did. Notice how much you have to simplify at the small sizes.

Working with a preview

Before we actually draw, I want to adjust one setting. When I draw, I tend to squint, because pixel art is honestly pretty small. To create it, you deliberately place individual pixels on the canvas, and that makes you lose yourself in the detail. You focus too much.

So I always have a preview open. You can search for it in Help, or go to View > Preview, or press F7. I make the preview window a bit smaller and put it to one side so I can see the whole picture, the squinting-out picture.

This matters because pixel art ends up small. If you make a tile or a character and take it into a game engine, it will be tiny on screen. (I’m developing a game myself, so I see this all the time.) In the preview you can scroll the middle wheel to make the image even smaller, so you know exactly what you’re doing.

For example, I drew a little alien man. At game size he’s very hard to see. When that happens, either you make him bigger, or you rethink the design: if he’s going to be this small, make the whole head much bigger and the eyes bigger, so he still reads on a tiny canvas.

  1. Draw the head and body in outline with the pencil.
  2. Press G for the paint bucket. (Hover over any tool to see its name and shortcut: “Paint Bucket”, shortcut G.)
  3. Choose a green, because he’s an alien, and click inside the shapes to fill them.
  4. Look at the preview. Small as it is, it already reads much better.
  5. Strengthen whatever is weak. Here the hands and body needed to be more prominent, so I thickened them, and it’s so much better.
A pixel-art green alien with a big round head, two large dark brown teardrop eyes, a small mouth and a thin stick body on a 32 by 32 canvas; a small Preview panel to the right shows the same alien in miniature.
Figure 23.1. My 32 by 32 alien in Aseprite, filled with the paint bucket. The Preview window at the top right shows him at a much smaller size, closer to how he would look in a game.

Try it. Open the Preview window (F7), draw a small character, and keep checking it at preview size. Wherever it doesn’t read, make that part more prominent.

The pencil, brush shape and pixel perfect

Here’s a tip. We’re using the pencil tool. If you come from Photoshop, don’t use a brush: use the pencil. It gives you control of every single pixel. If you want a thicker line, make the size 2, or 4 for a really big one.

As the size goes up, you’ll notice the pencil’s shape changing. At 8 it’s obviously rounded, because the brush type is set to round. There’s also a square brush type. At size 1 the two are exactly the same, so it doesn’t matter. At four or five, the shape matters a lot. I drew the alien’s mouth both ways: a perfect square mouth with the square brush, and a not-so-perfect rounded but pixelated one with the round brush. The results are completely different, so choose depending on what you want.

You may also have noticed the Pixel-perfect option. Switch it off, use the round brush at just 1 pixel, and draw. Depending on the pressure you apply, the line is sometimes wider, sometimes it breaks, and sometimes it doubles up. It looks pretty weird. Switch Pixel-perfect on and draw again, even pressing hard, and it smooths things out: there’s no doubling. Technically it isn’t behaving like a brush any more, it’s one clean pixel line. Set the size to 2 and you still get a pixel-perfect result, just two pixels wide.

Two shortcuts while you test this: E for the eraser, and B for the pencil.

Straight lines

A final bonus tip: straight lines. There are two ways.

  1. The line tool. Press L, then click and hold and drag. You get a straight line.
  2. Shift with the pencil. With the pencil, click once, hold Shift, and click again where the line should end. You get a straight line between the two points, and it’s still pixel perfect. You can draw any line this way, a sword for example.

I think holding Shift and clicking is the much easier way of doing it. And remember Command Z to undo.

Try it. Draw a sword for your character using Shift and the pencil, with Pixel-perfect switched on.

Selection tools

Now let’s look at selection. I want to show you an amazing feature, so amazing that I haven’t come across it in any other software, at least to my knowledge: the Magic Wand. Since we’re here, though, I’ll go through all the selection tools.

A note on mouse buttons: hover over a selection tool and it tells you its gestures. The left button replaces or adds to the current selection, and the right button removes from it. I’m left-handed, so for me everything is flipped. It doesn’t really matter.

  • Rectangular marquee tool. Basically just a selection. Select an area and you can move the pixels around. You can also remove part of a selection, carving pieces out of it, and then move what’s left. It’s really interesting.
  • Elliptical marquee tool. The same idea with ellipses. For example, I can carve one of the alien’s eyes out and move it, and use the other button to cut part of the selection away.
  • Lasso tool. A freehand selection. Really simple.
  • Polygon lasso tool. This one is a little different from Photoshop’s polygon selection, and there’s a learning curve. You click and drag to one point, then click and drag to the next, and so on, and when you click again the shape is selected.

To deselect everything, press Command D, just as in Photoshop. I use Photoshop a lot, so this comes easily.

The Magic Wand

Finally, the tool I really wanted to share. Click with the Magic Wand and you automatically select everything of that colour that’s connected. Here’s what makes it amazing: in pixel art, most of the time, the colours are exactly the same, so the selection is exact.

  • With Continuous ticked, you select only the continuous area you clicked.
  • With Continuous unticked, you select every area of that colour, even ones that are separated. Then you can move them, or drag the colour right out of the character.

For example, say you want to select the black line art. With Continuous on you only get one connected stretch of line. Untick it, click again, and all those black pixels are selected. Then you can move the whole line art out. It’s amazing, and really convenient when you have the colour and the line art together like this.

The alien drawing with its green fill moved off to the right edge of the canvas; only the dark brown outline, eyes, black mouth and stick body remain in place on the grey background.
Figure 23.2. Magic Wand selection: with Continuous switched off, all the green pixels of the alien are selected at once and dragged out to the right, leaving his dark line art in place.

It doesn’t always select everything, though. That’s the not-so-good part, and there are options to think about:

  • Whether it refers to the active layer or the visible layers. Think about which layer you want, for example a colour layer and an outline layer.
  • Stop at Grid.
  • Pixel connectivity: four-connected or eight-connected.
  • The threshold. In this drawing changing it didn’t make much difference.

Where the line has a break in it, one click won’t get everything. Add to the selection instead: I believe you hold Shift and click the other parts, and then you have the whole line.

Try it. Draw a character with a dark outline and a fill colour. Use the Magic Wand with Continuous switched off to select all of the fill colour, drag it away from the outline, and then put it back.

Colour, light and shadow

Now let’s talk about colour. So far we’ve had a uniform fill colour and a black outline, and that’s not the style I’m aiming for. When you want to add more colours, be aware of how pixel art palettes work. Look at Aseprite’s default palette: it’s a really small number of carefully chosen colours. That’s because pixel art was first introduced when early video game consoles only supported 8, 16 or 32 colours. The Commodore, for example, used a 16-colour palette. Later machines supported more, something like 54. So this art style came from the console restrictions and then became an art in itself.

Of course, you can make modern pixel art, but I prefer to keep that nostalgic feeling. And especially if you’re a beginner, I strongly encourage you to reduce the colours you use, so that you actively think about colour. If you have all the freedom in the world to choose any colour, you might not think about it, and you might not choose a colour for a specific reason.

Here’s what I mean. Erase everything and, with the pencil, draw a ball: a red circle filled in one colour. With a uniform colour it’s pretty weird, right? There’s no volume inside; it’s flat. What it needs is more colours. But look at the palette: there’s nothing more to choose from. There’s no darker red.

  1. Go to the colour picker and choose a red that is more saturated and darker.
  2. Press B for the pencil and add a little shading to the original ball.
  3. Choose a brighter colour and add a little reflection. Don’t overdo it: I added too much at first and cut it down to just one or two pixels, and then one.
  4. Now you have a highlight and a shadow. Remember you can always check the preview, zoom out and squint, to see how it might look inside the game.
A round crimson pixel ball on a grey checkerboard canvas, with a band of dark red pixels along its lower-right edge and three small pale-pink highlight pixels near its upper left; a small Preview panel on the left shows the same ball in miniature.
Figure 23.3. A flat red ball given volume with only two extra colours: a darker, more saturated red on the lower right for the shadow, and a few pale pixels at the upper left for the highlight. The Preview window shows it at game size.

Adding your own colours to the palette

For a modern game or modern pixel art you don’t necessarily need the original sets of colours, but I encourage you to challenge yourself. Use that common ground, because the people who play your game or love your art may be the nostalgic sort, and if you follow those rules they’ll appreciate it. For creative freedom, of course, you can always create whatever you want. That doesn’t really matter at this point.

The colours I just used didn’t come from the palette; I picked them from the colour picker. I chose a brighter colour for the reflection, and you can even move to a different part of the spectrum, a purple or something; it doesn’t really matter. But here’s the trick: once you’ve chosen a colour, follow your creative freedom, but always save that colour, so you can reference it later with the eyedropper. “This is the colour I used here. This is the shadow I used there.”

Even though I’m a game developer and know I can use shading in the engine to change colours programmatically, so a sprite gets dark at night or reacts to different lighting, I tend to make at least a pure colour, a highlight and a shadow, without adding reflection influence and all that. That goes into the sprite sheet or the tilemap, and then I import it into the game and add the programming.

To save a colour:

  1. Press I for the eyedropper and click the colour on your drawing.
  2. Click the small button next to the foreground colour that adds that colour to the palette. If you hover over it, it tells you what it does: “Add foreground color to the palette”.
  3. Do the same for each colour you want to keep: the highlight, the shadow, and so on.

Now you can come back for more. Want more shadow? Pick the saved shadow, switch back to the pencil, and add a little shadow here, a little there, to make it more rounded. You can even change the shape altogether. Want more highlight? Click your saved highlight and add a little more at the top. Make it a bit longer. Yeah, that’s already enough.

Try it. Shade your own ball with one darker, more saturated colour and one brighter colour, then save both colours to the palette and use them again from there.

Colour presets

You don’t need to go searching the internet for a classic colour palette. There are tons of presets built in. That’s brilliant. You can load a preset other people have shared, or one you’re fascinated by: Minecraft, Master System, Game Boy. Oh my gosh, nostalgia. That’s a kind of challenge. Load one and you restrict your colours to it, and that does give you a sense of nostalgia. I sometimes intentionally reduce my game to a certain palette. And of course, you can change back and use more colours whenever you want.

Loading a preset also counts as a step, so Command Z, Command Z, Command Z, and you can always go back.

You can also sort the palette: by gradient, reversed, or by brightness. I love it. Sort by brightness and the brighter colours go one way and the darker the other, so you know where to choose. This is really helpful when you want to add a dark, shadowy part (choose from this end) or something brighter (choose from the other).

And if you’re proud of your palette, save it: Save palette, or save it as a preset. You get a file, “my colours” or whatever you call it. Then you can share it with other people, and load it again if you move to another computer. Really, really easy.

Tips about colour problems

A few small things that can trip you up.

  • The palette can be wider. There’s a handle on the palette panel you can grab to make it wider. To be honest, it doesn’t mean much; it just gives you the feeling of a bigger space to work in if you’re adding a lot of colours.
  • Palette slots are locked. If you select a slot and pick a different colour, the slot doesn’t change. That’s because the palette is locked. To edit a colour, first click the Edit Color button at the top left of the palette to unlock editing, then choose the slot and pick the new colour from the spectrum. You can also add a colour to the palette and place it where you want. There are multiple ways of doing it.
  • Changing the colour mode is high-risk behaviour. The colour mode should be set when you create a new file (RGBA, greyscale or indexed). But especially when you download something from a website, it may come in a different colour mode, most of the time indexed, and the colours seem weird. That’s the debugging tip: go to Sprite > Colour Mode and change it to RGB.
  • Greyscale can be a style. You can also switch a sprite to greyscale on purpose, for example if your game or art is meant to be viewed on a black-and-white reader like a Kindle. It’s a pretty interesting style; to be honest, I love it, and it can make your art and your game stand out. For beginners especially, I encourage you to learn about value and shadows by putting your drawing in greyscale and then changing it back to colour. It’s great fun.

And remember, every step can be rewound. Command Z, boom, you’re back to the original settings.

Layers and their order

One of the amazing and powerful things about Aseprite is that it’s designed not only for pixel art but for complex pixel art and complex pixel-art animation.

Think about our ball. It could be a ball or a balloon, whatever. Add a tiny little thing and it changes into something completely different. Add a stalk and it becomes an apple, or a cherry. Or make it cute: give it a face and it’s a character. I took one of my shadow colours and made an open, smiling mouth. You could make a cute robot: give it an antenna, make the eyes glow. I went for an alien, with some weird antennae in a neutral colour, connected to the head, some alien bouncy thingy. I don’t know what it is; it doesn’t really matter. I made the inside of the mouth darker, because what’s inside the mouth is also pretty important. A tiny bit of that gives the mouth depth.

But so far this is all one layer, and for a complex drawing you can have multiple layers. I normally have a layer for the background, so I get a bit of contrast instead of the black-and-white or grey checkerboard.

  1. Press Shift N for a new layer. Boom, Layer 2. How cool is that?
  2. Press G for the bucket and fill it with a dark, neutral background colour. Boom, it covers your drawing.
  3. Look at the layers panel: Layer 2 is above Layer 1. That’s what I wanted to show you. The order matters.
  4. Drag Layer 2 down below Layer 1. Boom, your drawing appears again.
  5. I prefer a greyish background, so I filled it again with a grey. That’s much better.

If you’re old school, you can use the Layer menu instead: New Layer, and boom, Layer 3. You can hide individual layers, and you can reorder them by dragging.

Try it. Turn your shaded ball into something else with one or two small additions (an apple, a cherry, a little character), then add a background layer and drag it underneath.

Quickly selecting a layer

Here’s a tip. Once you have a lot of layers, you get lost. Say I’m on Layer 3 and I add some cute little hands: pick a colour, draw them, and add a tiny bit of shadow so they look more real. It’s just a fun, cute demonstration.

Now I’m not satisfied with the mouth. I press E for the eraser and try to erase it, and nothing happens. Why? Because I’m on Layer 3. If you single out each layer you’ll see: Layer 3 only has the two hands, Layer 1 has the whole body, and Layer 2 has the background. You can’t erase or paint over the mouth from the wrong layer. (I often modify things by painting over them.)

So how do you quickly get to the right layer, when you don’t know where the mouth is? You could rename your layers; normally I don’t. Here’s the little trick:

  1. Press V for the move tool.
  2. Switch on Auto Select Layer in the tool options. Sometimes it’s on by default; if not, switch it on manually.
  3. Now don’t use it to move. Just click on the thing you want to edit, without dragging. Click the mouth and Layer 1 is selected. Click the hand: Layer 3. The mouth again: Layer 1.

Then I made my change. The mouth was too big, and I wanted him a little aggressive but still pretty cute. I picked the colour, painted over the mouth to make it a bit smiley, and added teeth. I tend to restrict the colours I use, so I used my highlight colour for the teeth, one, then maybe two, for a cuter feeling. Zoom out, and keep looking at the preview. It’s really helpful.

This is just a simple example as a quick tool demonstration; I’ll show you the workflow I recommend later. It’s not a rule you have to follow. It’s just what I find efficient, and you can do whatever you want. I don’t want to give you a textbook example of things.

The move tool is also a great tool for animation. Don’t worry, animation is not a big deal, as long as you can get a certain gesture. I think of a gesture like a really high-speed camera, the kind that can take forty photos a second: something is moving and you freeze it in a moment. Once you have that, you add more frames before and after, and you get a smooth animation. There’s anticipation and all that too, but right now I want to focus on the design, the tools and the workflow. If you’re into game development, those animations become the whole set of sprite movements.

What I’ve drawn here suits that very well. It’s a cute beginner monster, the tutorial monster. In most games you start off hunting slimes or something like that; it’s a cliché. You’re new to the game, you hack and slash slimes and level up while the game teaches you how to navigate it. This design is pretty approachable, so it’s very suitable.

Quickly switching to the colour picker

Another short tip, I promise it will be short. I love using the colour picker.

I know I just told you to restrict yourself to a palette. Normally, though, I tend to create in a more carefree way and then restrict, downgrading the colour selection afterwards. True story: I personally don’t want to restrict myself, unless I’m aiming for a specific style. I’m also a programmer, so you can create with whatever colours you want and then programmatically downgrade the result to a restricted set of colours. That’s not the point here, though. The point is using the colour picker as a really quick creative tool, without worrying about anything else.

  1. Press Shift N to quickly make a new layer on top of everything.
  2. With the pencil active, hold Alt and click a colour on the drawing. That picks it.
  3. Let go of Alt, and you’re straight back to the pencil with the new colour. Keep painting.
  4. Want a different colour? Hold Alt, click, let go, paint.

I used this to rework the eyes, to make the antennae thicker, and to make the mouth a bit bigger. Then, Alt-click back to black, and I gave him sunglasses. It’s like a “thug life” sort of character, an evil, upper-level character. I even tried adding a chain, but that was a really bad idea: the chain was too round and didn’t stand out. Maybe with a tiny body below and a chain on it, it would be fun. Right now, though, I’m keeping him round, because a round shape makes it easy for us to learn shading.

Notice also that halfway through I realised I’d been painting on the wrong layer. Layers really matter. I used V and a click to find the right one, and hid the layer I didn’t want.

Later you can draw a full body, a main character, a main sprite. But make the head bigger. Pixel art is really small, and if you try to draw a realistic rather than a stylised character, you can’t see the expression, and you lose a lot of detail.

So that’s the trick: hold Alt for the colour picker, click, let go, and continue painting. Really simple.

Flatten, fine-tune, and the automatic outline

Sometimes I like to add special effects: the character is glowing, or hurt, or poisoned, something like that. You can use a custom script in a game engine for that, but I’ll show you how to play around with the design in Aseprite and see the results quickly.

First, layers. I’d created way too many layers for such a simple drawing, and I don’t want to mess everything up, so I combined them: right-click a layer and choose Flatten. Boom, one layer.

Then I fine-tuned. I erased a little here and there, and used the eyedropper to add a tiny bit of dark colour to separate the hands better. Not sure; maybe a bad idea. Make the eraser one pixel for fine-tuning like this. I filled a bit in, squinted, deleted it again, and in the end left it blank. That’s how tricky pixel art is. You go pixel by pixel. Every pixel exists for a reason.

Now the outline. Our character has a fairly thin outline. Some people love a fuller outline just for style, and sometimes, if you develop a game, it’s for special effects. Luckily, Aseprite already includes this in its effects.

  1. Go to Edit, then the special effects menu, then Outline. Boom: it adds an outline automatically.
  2. You may not see it at first. Set the Outline Colour. I picked a really dark colour.
  3. Choose the shape. The circle shape gives a rounded outline all the way around the outside of the character, and I think it keeps most of the original shape. The square shape makes it fuller. You can also choose horizontal, which makes it wider, or vertical, which makes it taller. Sometimes horizontal gives a really interesting feeling.
  4. Choose Outside or Inside. Normally it should be outside, so it doesn’t change your character.
A round red pixel monster with two thin antennae tipped in green, black sunglasses, pale highlights and a small pink mouth, surrounded by a thick dark navy outline; to its left, Aseprite's Outline dialog shows Outline Color, Background Color, shape buttons, Outside and Inside options and a Preview checkbox.
Figure 23.4. Aseprite’s Outline dialog: the character has been flattened to one layer and given a dark, rounded outline all the way around the outside, with Outline Colour, the shape options and Outside/Inside on the left.

Which one you choose really depends on your style, on the whole design, the background, the environment, the whole game.

Here’s another sneaky trick I use sometimes. I make tons of things in my game that I don’t want to animate fully, but I want them highlighted. You can do that in the game with a script or a shader that changes the colour or the brightness, or with a little looping animation. But you can also use the outline, so it seems like an idle animation. Press V and move the whole thing a pixel, a tiny bit, so it seems to float around, and make that the animation. It saves you tons of time. Come on, this isn’t a very important character. It’s a basic slime the player meets at the beginning, and a game might have a hundred, two hundred, five hundred of them, or thousands of procedurally generated enemies, like in Diablo. You can get away with this kind of animation.

The outline isn’t restricted to a dark colour, either. Move a little away from the original colour and you get a very different effect. Choose a white or light grey and you get a sticker effect. With the rounded shape it wraps around everything like a sticker. I prefer not to let the outline change the basic shape, so I keep it outside; that way you keep things like the antennae. If you prefer the inside version, you get that style instead. And of course you can add things manually afterwards.

The red pixel monster with green-tipped antennae and black sunglasses, now outlined in white all the way around like a sticker, on a grey canvas.
Figure 23.5. The same character with a white, sticker-style outline set outside the shape, so the antennae and the whole silhouette are kept.

Play around. This is a really fun process. I like both the dark one and the sticker one. You can even make several versions and switch between them, so the outline flickers a little. Once you’re happy, click OK and it’s confirmed.

Try it. Flatten your character, then try the Outline effect with a dark colour and with white, with the circle and the square shape, and outside and inside. Pick the one that suits your design.

Export is your friend

You might think this sticker is already pretty good. Before I do any animation, fine-tuning, or a whole family of variations of this monster, you might want to export it and share it with your friends. Exporting is hard. I’m not joking. There are a lot of gotchas. Let me show you.

One last touch: the glasses

But first, a final touch. The glasses are too flat. Even though it’s pixel art and already a minimal version, you don’t want it so flat that it loses detail. There’s no hard rule; I’m a great supporter of creative freedom, and this is my personal opinion.

  1. Hold Alt and click the black of the glasses, but don’t use that colour as it is. Move it a tiny bit lighter.
  2. Add a tiny bit of reflection: here, maybe here, here. Just that tiny bit makes a whole difference.
  3. If you want more, you can add an even darker colour, or a transition shadow, if the black isn’t 100 % black. I didn’t bother; I think it’s already pretty good.
  4. You can also add a shadowy area below the glasses, slightly tilted, and it instantly looks more authentic. Where it goes depends on where the light comes from, and that’s personal taste.

Export early

Now pause your creating for a moment, because export is very, very crucial. Export is part of your creative process. A lot of artists and indie developers make this mistake, and I made it as well: I always wanted to get the best result, and only then export. Don’t do that.

Hear me out. I’m a great supporter of building in public. I think it may be the only way nowadays for an indie developer or artist to stay competitive in this really competitive business, whether it’s art, commissions or an indie game. You can’t compete with a triple-A company: they have better distribution, your creation may not be playable on consoles, you can’t negotiate with their representatives. What’s to your advantage is that you’re more approachable. You’re a one-person team or a small team, so you can talk like a person and build a community. A big company tells you, “We’ll get back to you in five business days.” Even with the help of AI they’ll do that: an AI faking a human voice, and still “five business days”. That’s really bad, especially for games, which constantly need communication, feedback and improvement. Art constantly needs feedback too: “What do you like? Which part do you want me to change?” That’s our advantage.

So my suggestion: don’t treat export as the final button you press when you’re completely satisfied with the work. Treat it as “I can share this right now.” Post your work, make time-lapses of it, build your portfolio and your community, and keep posting. Work in progress is also something to share. Sometimes you don’t even know what you want to create; you just have a funny idea, an amazing idea, a spark. Once you’ve created it, semi-finished, or just an exploration, export it. That’s the trick I’ve learned throughout all these years. You don’t need a finished, perfect product to publish.

Once you publish, you attract the people who really love your style and what you’re doing, and you get a kind of social proof: “I do all this myself. I’m building this project. Are you interested?” You can find mates, friends, more audience, maybe even a company that wants to hire you or an investor who wants to sponsor you.

You also get instant feedback from a lot of sources, not just you. When I finish something, I pull away for at least a few hours, eat something, go out and do something completely different, and then look at it again. Then I can critique my own previous work. Now imagine a hundred thousand people, millions of people, looking at it. How many hours of review would that save? You get instant feedback, and you can improve.

Of course, you need a strong heart. It’s like going to the gym when you’re not in great shape and feeling self-conscious: put your headphones on, don’t mind the judgement, and just work out. Sometimes you’ll take a comment on board, “There’s a suggestion, I should do it this way,” and then put it down and continue to work. That’s my suggestion.

Save, then Export As

Now, how to export.

  1. First, save constantly: Command S. If you see a little dot on the file’s tab, that means it has changed and you need to save. Save, and the dot disappears.
  2. That saved file is the Aseprite file. It’s like a Photoshop file: all the layer information is stored in it. That’s not what you want to share. You want to export.
  3. Right now we only have one frame, so we don’t need to export a tileset or a sprite sheet. We’ll get to those. For an intermediate result like this, the best way, in my humble opinion, is File > Export As. Not “export sprite sheet”, not “export tileset”. Just Export As.
Aseprite's Export File dialog showing Output File, Resize 100.00, Area Canvas, Layers Visible layers, Frames All frames and Animation Direction Forward, next to the white-outlined red pixel monster whose black sunglasses now have grey reflection pixels and a dark shadow beneath.
Figure 23.6. Aseprite’s Export File dialog over the finished monster, with its sticker outline and the new reflections on his sunglasses. Resize is set to 100, with options for Layers, Frames and Animation Direction below.

Why the export looks blurry, and the Resize option

Here’s the tricky part: the Resize option, set to 100 %. Why is there a resize option at all?

I exported at 100 % and opened the file, and as you can see, it isn’t what we exported. It looks a bit blurry, not crystal clear. This is a common issue whenever you deal with pixel art, whether you’re making a game or making art. Pixel art needs to be pixel perfect: dot, dot, dot, dot. But when it’s really small, the system uses some filtering algorithm. I’m over-simplifying here, because this isn’t a maths class, but basically it uses some sort of average: each pixel is changed depending on the pixels around it, a kind of moving average. That’s why it looks blurry. Each pixel has become the average of its neighbours, not your exact pixel art. You don’t want that.

There are two ways to deal with it.

  • For a game engine, export at 100 %. If you’re taking it into an engine such as Godot, don’t change anything. When you created the file you already chose 16 by 16 or 32 by 32, and you want exactly that size. Don’t resize.
  • For sharing, export bigger. If you want to share your work, or even sell it, resize it to at least something like 500 % or 800 % in the Resize option. That size suits social media and thumbnails. When you upload artwork, it often needs a fairly high resolution; if you upload the tiny file, it may not pass, or the site may automatically apply a filter that tries to make it smoother. You don’t want that. And the bigger, the better: a big image can always be shrunk down automatically, and it suits a lot of different places you might post it.

Layers, frames and direction

The other options are pretty self-explanatory:

  • Layers. Sometimes, when you export an asset, you don’t want the background layer. You can hide it before exporting and choose Visible layers, or choose a selected layer, or have the layers flattened.
  • Frames. You can choose different frames. Here there’s just one.
  • Animation direction. Forward, reverse, or ping-pong. Ping-pong is really brilliant: you can get an infinite loop animation. We’ll talk about that when we come to animation.

So: export it, make it bigger if you want to share it, and use 100 % if you just want to use it in a game.

Try it. Export your monster twice: once at 100 %, and once resized much bigger. Open both and compare how sharp the pixels look.

Pixel art is precise art

We’ve pretty much finished our first pixel art. But it’s more like a freehand drawing than a specific pixel-art design. We’ll come back to it when we get to animation.

Compared with painting, sketching or drawing, I think pixel art is a precise art. It’s a kind of minimalism. It abstracts the idea: because you omit a lot of things by using pixels, you have to delete whatever isn’t relevant and stylise certain parts. Take a pixel-art character. The head will be really stylised, really, really big, so forget everything about anatomy. Technically the ratio is wrong. But artistically it’s good, because it’s stylised, and from a game point of view it’s good, because you can recognise the expression, and that’s really, really important.

So let’s set creative freedom aside for a little while and focus on the technical side, because I consider pixel art to be a precise art. In the chapters that follow we start from lines and shapes, and then use them in a blocking method. I use it a lot, and you’ll see how powerful it is for creating tons of little game assets really quickly, with brilliant results. It starts the same way as this chapter: a new file, 32 by 32, transparent, square pixels.

Key takeaways

  • Pixel art isn’t just nostalgia. It’s a living art form, and its limitation forces you to simplify and place every pixel on purpose: that’s where the art is born.
  • Start with 32 by 32. Fewer pixels doesn’t mean easier: at 8 by 8 you have to simplify so hard that there’s barely room for a face.
  • Keep a Preview window open (F7) so you don’t get lost in the detail, and check your design at the size it will appear in the game.
  • Draw with the pencil and Pixel-perfect on; give a flat shape volume with just one darker, more saturated colour and one brighter one, and save the colours you choose to the palette.
  • Use Auto Select Layer (V and click) to jump to the right layer, and hold Alt to pick a colour without leaving the pencil.
  • Export early and share work in progress. For a game engine, export at 100 %; for sharing, export much bigger so the pixels stay sharp.
Portrait of LIPAI WANG

LIPAI WANG

A self-taught artist and teacher, known to his video students as William Jiamin. A former programmer, he teaches drawing, painting, pixel art and 3D the way he learned them: one solvable piece at a time.