Свойство | Тип | Описание | |
---|---|---|---|
spriteBatch |
Свойство | Тип | Описание | |
---|---|---|---|
DrawAll | void | ||
DrawBorder | void | ||
DrawDebug | void | ||
DrawHud | void | ||
GetRelativeCoords | |||
GetRelativeCoords | Vector2 | ||
GetSpriteEffects | SpriteEffects | ||
IsObjectInArea | bool | ||
IsObjectInView | bool |
Метод | Описание | |
---|---|---|
Draw ( ) : void |
Single public method
|
|
GetWorldCoords ( Vector2 viewCoords ) : Vector2 |
Converts view coordinates into world coordinates
|
|
LoadContent ( ) : void | ||
Renderer ( |
||
UpdateCameraPosition ( float x, |
Scroll the view to a specified horizontal coordinate. Optionally, apply camera shake effect FYI V-scrolling is blocked
|
Метод | Описание | |
---|---|---|
DrawAll ( ) : void | ||
DrawBorder ( |
Will draw a border (hollow rectangle) of the given 'thicknessOfBorder' (in pixels) of the specified color. Order: Top > Left > Right > Bottom By Sean Colombo, from http://bluelinegamestudios.com/blog
|
|
DrawDebug ( ) : void | ||
DrawHud ( ) : void | ||
GetRelativeCoords ( |
Converts world rectangle into view rectangle
|
|
GetRelativeCoords ( Vector2 realWorldCoords ) : Vector2 |
Converts world coordinates into view coordinates
|
|
GetSpriteEffects ( HorizontalDirection horizontalDirection ) : SpriteEffects | ||
IsObjectInArea ( |
||
IsObjectInView ( |
public GetWorldCoords ( Vector2 viewCoords ) : Vector2 | ||
viewCoords | Vector2 | |
Результат | Vector2 |
public Renderer ( |
||
game | ||
Результат | System |
public UpdateCameraPosition ( float x, |
||
x | float | |
gameTime | ||
Результат | void |