Pixel perfect collision in Javascript using Canvas / HTML5

Techniques utalize createImageData, getImageData, putImageData, globalCompositeOperation, and in memory canvases. Basically a lot if edditing raw pixel data.

Directions: Use Left and Right arrows to move the character, and Spacebar to jump. Click the terrain to destroy chunks

Fork me on GitHub