Cobra is a project mainly written in Java, it's free.
A tile-based 2d game with perfect pixel collision.