Use your arrow keys to eat breakfast with Blerf!
This is a basic implementation of grid-based collision detection, read the accompanying article.
Here's the source code: