width property

int width
getter/setter pair

The current width of the game window/canvas in pixels.

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

Implementation

int width = 0;