Property | Type | Description | |
---|---|---|---|
COLLIDES_WITH_BOTTOM | int | ||
COLLIDES_WITH_LEFT | int | ||
COLLIDES_WITH_RIGHT | int | ||
COLLIDES_WITH_TOP | int | ||
NO_COLLISION | int | ||
SOLID_BLOCK | int |
Method | Description | |
---|---|---|
DrawTile ( |
Draws this tile on the screen
|
|
Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, |
Creates a new Tile object
|
|
Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, |
Creates a new Tile Object
|
|
Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, |
Constructs an *animated* Tile
|
|
getCollisionMask ( ) : int |
public DrawTile ( |
||
sb | The SpriteBatch to use to render this tile | |
bounds | ||
return | void |
public Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, |
||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | The tile texture sheet |
clip | The portion of the sheet that contains this tile | |
collisionMask | int | The collision bitmask |
return | System |
public Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, |
||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | The tile texture sheet |
clip | The portion of the sheet that contains this tile | |
collisionMask | int | The collision bitmask |
tint | Color | The tint to apply to this tile (White -> none) |
return | System |
public Tile ( Microsoft.Xna.Framework.Graphics.Texture2D texture, |
||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | The tile texture sheet |
clips | An array of clips that specific this tiles animation | |
collisionMask | int | The collision bitmask |
tint | Color | The tint to apply to this tile (White -> none) |
delay | int | |
return | System |