setUserScale(hScale, vScale, hTrim, vTrim)
Set a User scaling factor used in the USER_SCALE scaling mode. The target canvas size is computed by: canvas.width = (game.width * hScale) - hTrim
canvas.height = (game.height * vScale) - vTrim
This method can be used in the resize callback.
Parameters
Name Type Argument Default Description hScale number Horizontal scaling factor. vScale numer Vertical scaling factor. hTrim integer <optional> 0 Horizontal trim, applied after s