World.width

Category:Game Lab

Returns the width of the World in pixels.

This is a read only property of the World. It cannot be changed.

Examples

text(World.width, 0, 15);

Syntax

World.width

Returns

The width of the World in pixels.

Found a bug in the documentation? Let us know at documentation@code.org