CSS Logo XNACS1Lib Library Documentation
XNACS1Base.World Members

Game-Themed Introductory Programming Project   

XNACS1Base.World overview

Public Static Fields

TicksInASecond Number of ticks in one second.

Public Static Properties

Paused Pausing the World Update (ShouldTravel primitive will stop moving).
WorldMin Get the coodinate position that corresponds to the lower-left corner of the world.
WorldMax Get the coordinate position that corresponds to the upper-right corner of the world.
WorldDimension Get the dimension (width/height) of the world.

Public Static Methods

ClampAtWorldBound Ensures that the inputPrimitive is kept within bounds of the world. If inputPrimitive position is outside of the world bound, This function will determine the distances to the closes bound and force the inputPrimitive to be insde that world bound.
CollideWorldBound Collide the inputPrimitive with the worldBound and return which of the worldBound (left/right/top/bottom or inside) did this primitive intersect with.
OutsideWorldBound Returns true if the inputPrimitive is outside of the worldBound.
RemoveAllFromDrawSet Remove all Primitives from the default draw set. After this funciton, you will observe a blank screen.
SetBackgroundColor Sets the background color.
SetBackgroundTexture Set the background texture. The texture image will cover the entire background such that the background color will not be visible.
SetWorldCoordinate Defines the world coordinate system to draw in.
SetZuneToLandscape When on the Zune, run in landscape mode (default is portait mode)

See Also

XNACS1Base.World Class | XNACS1Lib Namespace