C# Class Terrarium.Renderer.World

Creates a Terrarium mapping world given a target height and width. Used by the TerrariumDirectDrawGameView to render the background
ファイルを表示 Open project: eugeniomiro/Terrarium Class Usage Examples

Private Properties

Property Type Description
CreateWorld System.Drawing.Rectangle
MiniMapPass void
TileFilterPass void
TileOffsetPass void
World System

Private Methods

Method Description
CreateWorld ( int xPixels, int yPixels ) : Rectangle

Initializes the mapping using a target number pixels.

MiniMapPass ( ) : void

Runs a MinMap pass over the World object to create a small version of the world.

TileFilterPass ( ) : void

Turns the map into a series of tiles that can index into the background sprite sheet.

TileOffsetPass ( ) : void

Computes the viewport offsets for tiles so that the information is available during rendering and doesn't have to be computed on the fly.

World ( ) : System