scale

private scale(game: Application, x: number, y: number) → {}

scale the "displayed" canvas by the given scalar. this will modify the size of canvas element directly. Only use this if you are not using the automatic scaling feature.

Parameters:
Name Type Description
game Application

the game application instance triggering the resize

x number

x scaling multiplier

y number

y scaling multiplier

Returns:
Type Description
Powered by webdoc!