Logo

The Pixel Art Rendering Trick Behind “Destroy Any Website”

Hugo -

A bright orange pixel art explosion, sparks, and a flying projectile over a Wikipedia article
Destroy Any Website, the stickman game

On September 28th, I released a web game called "Destroy Any Website" where you can smash web pages with a stickman and funny weapons. It's not a new genre. There are plenty of old-school desktop destroyer games, but this is my take on it!

It got some traction and I received many questions about how it was made (art, effects, multiplayer, etc.). So today we'll dive into a trick I used for crisp pixel art rendering. Let's go!


The naive way to render pixel art

Incorrect rendering, marked with a red cross: a rotated pixel art rocket launcher whose pixels do not align with the orange grid
"Fake" pixel art look, let's fix that!

Here you can see that our rocket launcher is an actual pixel art sprite, but it is rendered at a higher resolution, making it look off.

To solve that, there is a simple and pretty effective trick.

Render your pixel art onto a separate layer

The trick is to render your pixel art (sprites, VFX, anything pixel art) onto a separate layer at a lower resolution, and stack it on your high-resolution layer.

Exploded view of one frame: a low-resolution pixel art layer scaled four times, a light layer, and the full-resolution website layer

Which gives us a true, crisp pixel art look over a high-res background, giving that sweet ’90s look!

Check the difference!

And this can apply to all your pixel art VFX, particles, characters, etc.!

The Magic Wand draws a glowing pixel art rune circle and a beam of light over Wikipedia’s Stick figure article
"The Magic Wand" weapon
A neutron star fires two pixel art jets through a Wikipedia article, revealing a city skyline behind it
The Neutron Star gun, codenamed PSR B0531+21

Conclusion

It is not a fancy, black magic trick, but it will instantly make your pixel art game look much better. Quick win! Bookmark this post to make sure you remember it.

You can play the game here. It's free and you can even play with up to 5 friends or through online matchmaking!

PS: This whole trick applies only if you are rendering high-res and low-res pixel art in the same frame. If you are only doing pixel art, then just render everything at the native pixel scale of your art.

Get my next notes & experiments