

Let’s extend the format to 2 bits per pixel (i.e., 2bpp). Now, only two colors are nice for certain art styles, but to relive the glory of 16-bit graphics we need a bit more (no pun intended). And finally, the palette that shows which index represents which color. are the indices of the corresponding pixel row translated to hexadecimal. To the right of it, you see the color index assigned to each pixel (i.e., the index of the color the pixel will have). So this means, a pixel can have two colors, either color 0 or color 1. This first image is in 1 bit per pixel format, or 1bpp: 1 bit per pixel formatĮach pixel holds 1 bit. Instead of saving the color of a certain pixel, the index number of a color is saved that references a color inside a palette.

The SNES relies on a technique called (indirect) color indexing (in fact, the NES and Game Boy used this technique too, as we will see shortly). Let’s get started! Your Development Environment Badge has evolved to the First Opcodes Badge! Intertwined and Planar Graphic Formats discuss the graphics format of the SNESĪnd in the next article, we will use that sprite and display it on the SNES.I promised you in the last article that you will create a sprite to display later on the SNES, so in this article, we will Since the last article was heavy on the theory, I want to keep this one a bit more practical. In this article (should I start calling them dungeons instead? Levels? Quests? I’ll think about it) we will go about things a bit differently. But we covered some important ground that will come in handy later. I admit it got a bit long (I strive to keep it under 2,500 words, the last one was 3,900). I hope the last time wasn’t too hard on you. Update February 2022: All code examples from all articles in this series can now be found on Github in one repository Also added additional information on how to prepare graphics for use on the SNES. Many thanks to the commenters for pointing this out. Update May 2022: Fixed some errors in the example images which had some incorrect color values. SNES Assembly Adventure 03: Creating Your First Sprite
