Method | Description | |
---|---|---|
CheckCollision ( Vector2 position ) : bool? | ||
CheckTileCollision ( Vector2 position ) : bool | ||
CheckTileCollisionIntersect ( Vector2 position, |
||
Draw ( |
Draws all layers of the map
|
|
DrawAsMap ( |
Draws all layers of the map
|
|
DrawLayer ( |
Draws a single layer of the map
|
|
DrawLayer ( |
Draws a single layer by layer name
|
|
DrawLayer ( |
Draws a single layer by layer name, with a specified color
|
|
DrawLayer ( |
Draws a single layer as shadows, by layer name
|
|
GetLayer ( string name ) : TiledLib.Layer |
Gets a layer by name.
|
|
Map ( Microsoft.Xna.Framework.Content.ContentManager content, string mapName ) : System | ||
UnloadContent ( ) : void |
Method | Description | |
---|---|---|
Map ( Microsoft.Xna.Framework.Content.ContentReader reader ) : System |
public CheckCollision ( Vector2 position ) : bool? | ||
position | Vector2 | |
return | bool? |
public CheckTileCollision ( Vector2 position ) : bool | ||
position | Vector2 | |
return | bool |
public CheckTileCollisionIntersect ( Vector2 position, |
||
position | Vector2 | |
rect | ||
return | Rectangle? |
public Draw ( |
||
spriteBatch | The SpriteBatch to use to render the map. | |
gameCamera | The camera to use for positioning. | |
return | void |
public DrawAsMap ( |
||
spriteBatch | The SpriteBatch to use to render the map. | |
scale | int | |
return | void |
public DrawLayer ( |
||
spriteBatch | The SpriteBatch to use to render the layer. | |
layer | TiledLib.Layer | |
gameCamera | The camera to use for positioning. | |
offset | Vector2 | A pixel amount to offset the tile positioning by |
alpha | float | Layer opacity. |
color | Color | The color to use when drawing. |
return | void |
public DrawLayer ( |
||
spriteBatch | The SpriteBatch to use to render the layer. | |
layerName | string | The name of the layer to draw. |
gameCamera | The camera to use for positioning. | |
return | void |
public DrawLayer ( |
||
spriteBatch | The SpriteBatch to use to render the layer. | |
layerName | string | The name of the layer to draw. |
gameCamera | The camera to use for positioning. | |
color | Color | |
return | void |
public DrawLayer ( |
||
spriteBatch | The SpriteBatch to use to render the layer. | |
layerName | string | The name of the layer to draw. |
gameCamera | The camera to use for positioning. | |
shadowOffset | Vector2 | Pixel amount to offset the shadowing by. |
alpha | float | Shadow opacity |
return | void |
public GetLayer ( string name ) : TiledLib.Layer | ||
name | string | The name of the layer to retrieve. |
return | TiledLib.Layer |
public Map ( Microsoft.Xna.Framework.Content.ContentManager content, string mapName ) : System | ||
content | Microsoft.Xna.Framework.Content.ContentManager | |
mapName | string | |
return | System |