width property

int width
getter/setter pair

The current width of the game canvas in pixels.

This value is updated when the canvas resizes. See onResize.

Implementation

int width = 0;