Urgent.News

What's breaking now, across thousands of outlets.

Tech

Pixel Art for a Game Jam: My 16x16 Coin Sprite Sheet Workflow

At my last game jam I lost almost two hours on one spinning coin. The code was fine. The art wasn't. This time I wrote the process down while doing it: a 16×16 pixel art coin, four frames, exported as a sprite sheet and loaded into Phaser with crisp edges. Every step below fits into one evening. What you'll end up with: one 16×16 coin with 4 animation frames a transparent PNG sprite sheet a few…

At a game jam, the author spent almost two hours trying to create a spinning coin sprite, but the art was not satisfactory. This time, they documented the process of creating a 16×16 pixel art coin with four animation frames, which was then loaded into Phaser with crisp edges. The steps are as follows:

1. Choose a grid size that can be completed quickly. In this case, the author used a 16×16 grid, as it was sufficient for the coin's appearance.

2. Lock the palette before drawing. The author used the PICO-8 palette, selecting four colors: brown for the outline, orange for the body, yellow for the face, and white for a highlight. They refused to use any other colors, preferring to improve the shape instead.

3. Draw the first frame using an ellipse and mirror tool. The ellipse should be about 12 cells wide and 14 tall, centered. On the clean layer, trace the ellipse with the pencil tool and even out the curves.

4. Add the spinning effect by adjusting the width of each frame. In this case, the coin's width varied between 2 and 12 cells.

5. Eliminate wobble by ensuring the top and bottom rows stay aligned on all frames. Only the left and right edges should move.

6. Export the sprite sheet and a larger PNG for the game's visual representation. The PNG can be scaled up for display, while the original sprite sheet remains at 16×16.

7. Load the sprite sheet into Phaser without any smoothing. This can be done by setting the pixelArt property to true and adjusting the frameWidth and frameHeight to match the exported sheet.

The author advises writing a checklist to ensure consistency when creating pixel art sprites. After creating the coin sprite, they experimented with reducing the number of frames and reducing the complexity of the sprite. Ultimately, they found that 8 frames per second looked suitable for their game.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Self-Hosting Supabase on VPS with Coolify v4

💡 Originally published on Bijak Technology Enterprise Journal with full interactive parameter benchmarks. Commercial Supabase Cloud Pro bills spike aggressively the moment your application crosses…

The Design Logic Behind Eight Skills

In the previous post I said that the defenses we bought with real incidents eventually turned into eight concrete SKILLs. This post explains how to use those eight.

More from Wednesday 18 November →