The Game Dev Atlas, Act I, The Pixel Art Island: an engraved map of an island whose towns are the techniques of pixel art for games.
Unrolling the map...
by Sprite Fusion

Light · Act I

Pixel art loop. A collectible card of a hen, framed in gold, lies on a felt table. A gloved hand moves over it: the card leans toward the hand in perspective and a dithered band of white, yellow, pink and cyan light slides across it. One beat shows the two angles, another the band alone.
Act I, fig. 7 A card of our own leans after the hand, and a band of foil slides over it as it leans.

Card foil is a fascinating topic. To make a nice pixel-art version of a card foil: Lean a card toward the pointer in true perspective, from two angles. Slide a band of light across it as it leans. In pixel art the band is palette steps and dither, never a gradient.

Make my cards tilt toward the pointer in perspective, with a dithered foil band that slides as they lean.
Read the whole brief
Make [my item cards] lean toward the pointer and shine like foil.

- While the pointer is over a card, read two angles from it: [1] degree per pixel from the card's middle, [20] at most.
- The edge nearest the pointer goes away from the viewer, as if pressed. Ease back to flat when the pointer leaves.
- Draw the card in true perspective, solved backward: each screen pixel takes exactly one pixel of the sprite. No blending.
- Draw a hovered card [7]% larger, so no row of its pixels is skipped.
- Foil: a slanted band of light whose place depends only on the two angles. If the pointer stops, it stops.
- Lay the band in palette steps with a 4x4 ordered dither: white, yellow, then [pink and cyan] at its edges.
- A mask says where foil goes: [the picture's background and the frame, never the character or the text].

Change what stands in [brackets] to fit your game.

  1. Well, for TCG games obviously, but also for some buffs, or collector things in any game!

Not forToo-small sprites or icons/figures (under 48px).

The look became widely known with Balatro in 2024, whose own method was not read. The lean follows open shaders and projects that rebuild it.[1][2][3] Laying the foil in palette steps and dither is this atlas's addition.

  1. Hei, 2D perspective, Godot Shaders, 2022
  2. Mix and Jam, balatro-feel, GitHub
  3. AquaBaby, 2D holographic card shader, Godot Shaders, 2025