Instructions: Arrow keys to move.
This is a more basic version of the collision detection that will be used in the game. When a level is created using a map string, Logic.js reads the string and creates bounding geometries based on where the buildings and chainsaws are. Logic also keeps track of the in game character position - for demo purposes, the character position is tracked using obj04.js.
Meat Boy and each building have a bounding box, and each chainsaw has a bounding sphere. Since the game is a side-scroller, only collisions in the X and Y axes are checked. If Meat Boy is attempting to move in an axis, and a collision is detected in that axis, the movement is cancelled.