World Bots Cells Math Random Screen Sim StopWatch VObject VPoint |
Returns the top-level object in VisualBots.
The World object is the top-level (root) object in the VisualBots object model. In addition to serving as the parent object for the Bots, Cells, the World object also exposes some important global methods, properties, and events.
The following example resizes the Screen display area, changes the background color, and sets the boundary mode so that Bot objects reflect off of the Screen display edges when encountered.
World.Screen.Resize 400, 400
World.Screen.BackColor = vbBlack
World.Screen.Bounds = vbtWalled