HOW TO MAKE PIXEL ART FOR 2D GAMES

apple developer
Enrolling in the Apple Developer
1st April 2023
Node.js Libraries
Top 10 Node.js Libraries to Optimize Your Code and Simplify Development
5th April 2023
Show all

HOW TO MAKE PIXEL ART FOR 2D GAMES

So, you want to make pixel art – to design your own 2D game art and characters? Or perhaps you want to create a .gif of your dog soaring through the clouds into a pink and purple sunset?

Well budding heroes, heroines, and supervillains, your tale begins right here.

WHAT IS PIXEL ART?

A pixel is a single unit of measurement on a screen – each letter you’re reading right now is created by an arrangement of pixels. Pixel art is the intentional placement of pixels to create an image. 

It’s a beloved gaming art style for its nostalgia, charm, and accessibility, and it’s often used in 2D games to build game sprites and backgrounds.

BUT, WHAT IS A GAME SPRITE?

Sprites are images or “objects” that are placed in a game, such as a character, an item, etc.

Check out the sprites from Pong and Final Fantasy. What do you notice about them?

HOW TO MAKE PIXEL ART

In these games, the pixel art has a limited amount of colour, and the enemies and scenery tiles are duplicates. There’s a lot of contrast between the characters and the background, and the resolution is low so you can see the pixels in each of the images.

Back when these games were captivating a generation, game console graphics were only capable of producing simple artwork.

Pixel art is a digital art form conceived from necessity and limitation, and from this, some techniques for creating classic pixel art were established:

  1. Have control of every pixel you place – a paintbrush doesn’t give you control of each pixel
  2. Limit the amount of colours you use
  3. Limited resolution, so you can see the pixels
  4. Repeat assets (sprites)

In the words of a famous pirate, these are more what you’d call ‘guidelines’ than actual rules, and in the modern gaming world, what works is more important than what’s conventional.

Stardew Valley is an example of a pixel art game created without console limitation, yet you can still see similar techniques.

HOW TO MAKE PIXEL ART

WHAT IS THE BEST SOFTWARE FOR PIXEL ART?

They say a good worker never blames their tools, but you can’t create pixel art from random electronics, pet toys, and your favourite ‘vintage’ Busted CD.

Here’s a table of some excellent software that’s commonly used to create pixel art. Included are links to tutorials for creating pixel art in each:

SoftwarePrice*PlatformTutorial
GameMakerFreeMac, Windows, LinuxLevel up
Adobe Photoshop$20.99 p/mMac, WindowsGain XP 
Aseprite$19.99Mac, Windows, LinuxDiscover hidden scrolls
Pixel Studio: Pixel Art EditorFreeMobile, WindowsPerfect pixels
Procreate$9.99iPadDevelop your character
InkscapeFreeMac, Windows, LinuxGet on the horse
KritaFreeMac, Windows, LinuxA Krita critter
GimpFreeMac, Windows, LinuxXP points
PiskelFreeCreate in your browserUpgrade your skill tree 

*Prices based on 23/08/22

2D GAME PERSPECTIVES

There are three common types of perspective in 2D games: isometric, top-down, and side-on. Each view requires you to draw your pixel art in a slightly different way. 

ISOMETRIC PIXEL ART

Some pixel art games are made in an isometric perspective. This means that when you look at a cube, the three visible sides are all the same size.

Compare the art in Keylocker with the image of the blue isometric cube to see how this looks in a game.

HOW TO MAKE PIXEL ART FOR 2D GAMES

This perspective allows the artist to show parts of the scenery that wouldn’t have otherwise been visible. The downside is it can take awhile to create compared to other pixel art perspectives. 

You also need to draw at a specific, consistent angle. AdamCYous is a YouTuber and professional pixel artist. He offers some of the most approachable tutorials going, which can help you become a whiz kid in this technique.

You can read more about Keylocker in our interview with lead designer Nana Moon. She discusses her experience as a female developer and making isometric games in GameMaker.

TOP-DOWN PIXEL ART

In a game with a top-down perspective, the game looks as though the camera is overhead.

There are different ways of drawing pixel art for a top-down game. In real-time shooters like Hotline Miami, the pixel art is drawn as if everything is from a bird’s eye view.

In games like Undertale, the camera appears to be tilted more. Draw your game characters from a side-on view, and have one wall visible to create this effect.

HOW TO MAKE PIXEL ART

The top-down style has been used in dozens of hugely successful games, including Pokémon Yellow, Undertale, and the BAFTA award-winning Chicory: A Colorful Tale.

Here’s a great tutorial of hints and tips for creating top-down tilesets by Saultoons, and another by AdamCYous.

SIDE-ON PIXEL ART

For those that have never heard of a Mario Brother and don’t know what makes him so super, let us introduce you to platformers.

A platformer is a genre of 2D game with a side-on perspective. Although at their peak in the 1980s and 90s, modern classics like Celeste remind us how perfect the marriage between pixel art and 2D platformers really is.

HOW TO MAKE PIXEL ART


Side-on games often include acrobatic challenges to move around, offering up prime opportunities to create some fun jumping, triple flip, and face-kick animations.

HOW TO MAKE PIXEL ART?

Here’s a breakdown of some pixel art concepts which can transform your Picasso-like blocks into one of eBoy’s finest works.

HOW TO MAKE PIXEL ART

Pixel art animation by eBoy

WHAT SIZE OF CANVAS SHOULD YOU USE FOR PIXEL ART?

When thinking about your game, it’s important to consider the resolution. You have to fit in scenery, multiple game sprites, and perhaps dialogue boxes within a designated space.

Consider the resolution of classic hardware and achieve the nostalgic feel you want by using the same canvas size as the corresponding console:

ConsolesResolution
Game Boy160px by 144px
Game Boy Advance240px by 160px
NES256px by 240px
SNES256px by 224px
Genesis320px by 224px
 PIXEL ART

PokémonSilver on the Game Boy Colour and Sonic The Hedgehog on Genesis, developed by Game Freak and Sega respectively

Brandon James Greer offers an excellent introduction into canvas sizes.

HOW MANY PIXELS SHOULD I USE FOR MY SPRITES?

Now that you’ve chosen your game’s total resolution, consider the ratio to your game characters and objects. A ratio of 1:24 will make your character look big on-screen, whereas 1:300 will be visible, but pretty hard to see.

Draw all of your game objects in a 1:1 tile in your chosen software. Usually this is between 8:8 or 32:32 pixels, because any more would take a very long time to make. Each time you double the ratio (8:8, 16:16, 32:32), you quadruple the workload for each sprite.

Tile SizeNumber of Pixels in a Tile
8×864 pixels
16×16256 pixels
24×24576 pixels
32×321024 pixels

PIXEL ART COLOUR PALETTES

If we consider old gaming software, the NES offered a total of 25 colours at once, whereas the SNES could display 256.

To create classic pixel art, you’ll need to limit your colour palette, but the amount of different colours you use is ultimately up to you.

Think about saturation – how bright or how dark are your colours going to be? Do you want a dark, moody feel, or are you creating something bright and cartoony?

It’s good practice to stay within one area of saturation throughout your game. Try searching images from games with a similar feel to something you want to create.

Check out these tutorials from pixel artists Pixel Pete (Peter Milko) and AdamCYounis on creating colour palettes for games. Adobe also offers a helpful free tool for creating your own colour palette.

PIXEL ART FOR 2D

similar blog Get Started With Game Development Using Unit

for more information click here