I'm making an HTML5 game and I'm new to this, My issue is that I'm making a 2D game and I have a background that is bigger than my canvas.
I need that when my main object moves the camera moves with it so new background parts appear? But also that the rest of the objects disappear when required.
A little example will be
http://www.realmofthemadgod.com
Thanks