Phaser API Documentation

  Version: 
setSize(width, height)

Description:

Sets the size of this Game Object.

Parameters:

name type description
width number

The width of this Game Object.

height number

The height of this Game Object.

Returns:
Description:

This Game Object instance.