HTML5 Canvas camera/viewport – how to actually do it?
LIVE DEMO at jsfiddle.net This demo illustrates the viewport usage in a real game scenario. Use arrows keys to move the player over the room. The large room is generated on the fly using rectangles and the result is saved into an image. Notice that the player is always in the middle except when near … Read more