I was wondering how to resize a canvas and all of its drawings as the screen size changes. I know it is 100% possible as this game does (resize your browser and it will fit to any ratio).
Do I have to draw all my shapes with % or multiply them all by a % each time they are drawn? I can appreciate having to redraw on a screen size change but how do I affect the canvas and its components?
Aucun commentaire:
Enregistrer un commentaire