Game Mechanic Explorer is basically my favorite new passtime


Game Mechanic Explorer homepage

John Watson’s Game Mechanic Explorer kind of gives its purpose away in the title, but it’s a grand little library of interactive examples with a brief explanation below it, along with all the code to get it running laid out and nicely commented almost line-by-line.  The mechanics demo’d range from basic movement to missiles and following to lighting and all over other handy tropes of gameplay.  Everything is written in Javascript, but are intended to be as all-purpose as possible and easily adapted.

(via Rick Gilliland)