I am trying to learn how to use canvas so I can experiment with creating web apps and web games in my spare time. I like the fact that you can draw objects on the page. Anyhow I would like to know how I could make the canvas quite large then zoom into a certain point then dynamically move this viewbox with the player. I would also like to know how to implement zoom in and out.
Pretty much what I am trying to say is how can I create a 2D 'world' like on http://www.agar.io/
The problem I seem to have is that I can create the canvas to take up the whole page, but how do I set it up so the canvas is showing a portion of another much larger world? And can dynamically move around like a viewfinder in this larger world.
I have tried google search but when looking for scaling most things are to do with scaling the canvas for other devices and their resolutions.
At the moment I am going to use HTML5 canvas, JS & jQuery to experiment with canvas, are there any other things I should know?
Thanks for your help.