Video Game in a Favicon

By Deane Barker on July 15, 2008

DEFENDER of the Favicon: Ah geez, this is the stupidest, coolest thing I’ve ever seen.

DEFENDER of the favicon was done in 3 nights, from start to finish. Each frame of the game is generated on the fly in JavaScript into a 16?16 canvas element, then converted to a 32bits PNG image and used in place of the favicon. The core of the game act as a state machine. Notice a few details such as the pause when this window is not focused, and the resuming and game over transitions.