Method | Description | |
---|---|---|
MoveableTile ( Microsoft.Xna.Framework.Graphics.Sprite sprite, TileCollision collision, Vector2 velocity ) : System |
Creates a new Moveable tile.
|
|
bindToLevel ( |
Method | Description | |
---|---|---|
getCollidingTile ( ) : |
Method | Description | |
---|---|---|
getAdjacentCellAtAngle ( Vector2 currentCell, float angleRadians ) : Vector2 |
public MoveableTile ( Microsoft.Xna.Framework.Graphics.Sprite sprite, TileCollision collision, Vector2 velocity ) : System | ||
sprite | Microsoft.Xna.Framework.Graphics.Sprite | Sprite representing texture, size, and position of the tile. |
collision | TileCollision | Type of collision for the tile. |
velocity | Vector2 | Tile velocity: .X is the movement angle in radians and .Y is the speed in pixels per second. |
return | System |
public bindToLevel ( |
||
level | ||
return | void |