How to Use 8×8 Sprite Tile Mode in GB Studio

One of the biggest improvements in GB Studio 4.2.0 is the 8×8 sprite tile mode. Previously, sprites had to be built from 8×16 blocks, meaning that each piece was made up of two 8×8 tiles stacked vertically. This approach was initially chosen to maximize the available size for actors, but it also introduces complications when trying to stay within the hardware’s limits for on-screen simultaneous elements and VRAM storage. The new 8×8 px sprite tile mode offers much more flexibility in managing these constraints and using multiple color palettes more efficiently within a single object, among other useful tricks. Before exploring those advantages, though, it helps to understand how the Game Boy actually stores sprites.

How the Game Boy stores and draws sprites

The Game Boy stores graphics in VRAM as 8×8 px square tiles. In the standard 8×8 px tile mode, an on-screen object corresponds directly to a single tile in memory. In 8×16-tile mode, however, the hardware works a bit differently: when enabled, the console groups tiles into pairs and automatically places one on top of the other to form a vertical rectangle that is 8 px wide and 16 px tall. The primary advantage of this mode is that it allows you to display twice as much graphical data without exceeding the maximum number of tiles per scene.

The reason for this lies in the OAM (Object Attribute Memory). This is a small region of ultra-fast memory dedicated exclusively to sprites. You can think of it as the “inventory” that the Game Boy checks every frame to know which objects it needs to draw. The OAM contains 160 bytes, and since each object requires 4 bytes, the console can handle a maximum of 40 sprite entries on screen, regardless of whether you are using 8×8 or 8×16 mode.

For example, creating a 16×16 actor using 8×8 tiles requires four OAM entries, but in 8×16 mode, you only need two entries to represent the same area. This leaves more room to fill the screen with enemies or effects without hitting the hardware limit. The trade-off is that 8×16 sprite tiles could consume more 8×8 tile slots in VRAM because tiles are always allocated in pairs. Even if you only need one tile, the second tile must exist in memory. This makes it easier to hit the VRAM tile limit, especially since sprites share that space with backgrounds and graphics for user interface elements like HUDs and menus.

It is also interesting to look at which modes commercial games use. Debugging emulators like BGB can inspect how tiles are handled in real time. The Legend of Zelda: Link’s Awakening stores its sprites in 8×16 mode, while other titles, like Super Mario Land 2, optimize their tile usage depending on the scene’s requirements. Currently, GB Studio requires choosing a single mode for the entire project, so picking the right one is crucial.

Advantages of 8×8 sprite mode

Let’s take a closer look at what makes this new mode interesting. To enable it in your project, go to Settings > Sprite Options and select 8×8 tiles under Default Sprite Mode. Once active, the animation grid will let you drag square pieces rather than vertical blocks, opening up several strategic possibilities.

Less VRAM usage

One of the most important advantages is the potential to save VRAM space. GB Studio already optimizes tile storage by avoiding duplicate 8×8 tiles, but working with smaller pieces gives us much more flexibility when building animations. Instead of being forced to store multiple 8×16 chunks, you can reuse individual 8×8 tiles much more effectively.

Imagine a 16×16 actor with a three-frame walking animation where only the legs move. In 8×16 mode, each frame would require storing two tall sprite tiles. This means the total number of tiles stored in VRAM would be three frames times two sprite tiles, multiplied again by the two 8×8 tiles that form each sprite tile, totaling 12 tiles. In 8×8 mode, you could build the animation by reusing the two tiles that make up the head and only changing the tiles used for the legs, reducing the total to just 8 tiles in VRAM. Applying this optimization across multiple actors on screen at once quickly shows a noticeable difference!

The hardware limits for sprite rendering remain the same in both modes, so you still have the restriction of 10 sprite tiles per horizontal line. However, 8×8 mode allows us to create actors that are exactly 8×8 without wasting an extra row above or below them. It also greatly expands the possibilities for working with color palettes. Next stop.

More palette versatility

Each sprite tile is associated with a palette of four colors (technically three colors plus transparency). The key detail here is that the palette is assigned per sprite tile, not the full sprite. This means that each piece of an actor can use a different palette, something already possible in 8×16 mode, but becomes far more useful when you can break sprites into smaller parts. With 8×8 tiles, you can mix palettes more freely and give different parts of a sprite different colors without resorting to stacking tiles on top of each other, which could easily push us past the maximum number of sprites allowed per scanline or screen.

Going a bit further, it is also worth noting that the Game Boy’s original monochrome mode lets you use its available color range creatively. The two sprite palettes, OBP0 and OBP1, can be used interchangeably within the same actor, effectively allowing all four shades of green to appear in a single sprite. As is often the case with retro hardware, a lot of it comes down to smoke and mirrors.

Fewer sprites per horizontal line

Another advantage arises when actors do not fit the 8×16 structure perfectly. In 8×16 px mode, the height of the canvas used to assemble sprites must always be a multiple of 8 px. If this rule is not respected, those tiles may display random garbage data from VRAM when the game runs.

This becomes a problem for actors with dimensions such as 16×24 px. In that case, you would still need to fill a 16×32 px canvas with sprite tiles, even though some of those tiles would be completely blank. Those empty tiles still count toward the limit of 10 sprite tiles per horizontal line, which means they can overlap with tiles from adjacent rows and cause rendering issues.

These are the kinds of hardware constraints that we constantly need to keep in mind when developing games for the Game Boy. In 8×8 px mode, this problem essentially disappears because we can create actors with more precise dimensions, avoiding wasted tiles.

This is particularly useful when dealing with small projectiles. Anyone who has tried building a shoot ’em up in GB Studio knows how quickly sprite limits can become a problem. Using 8×8 sprites reduces the chances of too many elements lining up on the same horizontal line, making these kinds of games a bit easier to manage.

Better animations in the grid

There is also a common animation trick that benefits from the new mode. A good way to avoid loading additional graphics into VRAM is to reuse the same sprite tiles and simply move them around within the animation grid, creating motion by shifting overlapping pieces.

With 8×8 px tiles, we gain much more freedom because we are no longer tied to large 8×16 px blocks, which would require more overlapping elements to achieve the same effect. Another good example: all the animation frames below fit into just three tiles in VRAM. It almost feels like magic!

Many more possibilities!

These are just a few ideas for taking advantage of the new sprite mode, but as usually happens whenever GB Studio introduces a new feature, the community will quickly find clever ways to push it even further. One of the strengths of the tool is that it allows people to experiment and bring their ideas to life without modifying the game’s code.

At the end of the day, GB Studio’s goal is to make Game Boy development accessible to anyone who wants to try it. Features like this one make that goal a little easier to reach and open the door to even more creative projects.

Back To Top