an old school game, ported

Pug Attack

A small Processing sketch I made for a level design class at DePaul, hand-ported to vanilla JavaScript and Canvas so it runs in the browser. The pug bounces along the top, you aim with the mouse, and a click fires a shot at the cat scrolling across the bottom. Same shape as the original .pde, just rewritten so it does not need a plugin to run.

Click to fire. Hit the cat.