Scale Game

How can we scale the game to fit the browser
thank you

you can scale the canvas using CSS transform, this is by far the easiest, but the result might be blury image if you scale up

or

you can change the width and height of the canvas, but you also need to reposition your sprites,

Hi @Wuhao, i did like that, but the button cant be clicked anymore? How to fix that?