Property | Type | Description | |
---|---|---|---|
spriteBatch |
Property | Type | Description | |
---|---|---|---|
DrawAll | void | ||
DrawBorder | void | ||
DrawDebug | void | ||
DrawHud | void | ||
GetRelativeCoords | |||
GetRelativeCoords | Vector2 | ||
GetSpriteEffects | SpriteEffects | ||
IsObjectInArea | bool | ||
IsObjectInView | bool |
Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
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 | |
return | Vector2 |
public Renderer ( |
||
game | ||
return | System |
public UpdateCameraPosition ( float x, |
||
x | float | |
gameTime | ||
return | void |