C# Класс Terrarium.Renderer.World

Creates a Terrarium mapping world given a target height and width. Used by the TerrariumDirectDrawGameView to render the background
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateWorld System.Drawing.Rectangle
MiniMapPass void
TileFilterPass void
TileOffsetPass void
World System

Приватные методы

Метод Описание
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