Example #1
0
 public TileEntity(TileSet tset, string shortcut, Vector2f position = new Vector2f(), int depth = 0)
     : this(tset, tset.GetTilePosition (shortcut), position, depth)
 {
 }
Example #2
0
 public TileEntity(TileSet tset, uint tilex, uint tiley, Vector2f position = new Vector2f(), int depth = 0)
     : this(new Tile(tset, tilex, tiley), position, depth)
 {
 }
Example #3
0
 public TileEntity(TileSet tset, Vector2u tileindex, Vector2f position = new Vector2f(), int depth = 0)
     : this(tset, tileindex.X, tileindex.Y, position, depth)
 {
 }
Example #4
0
 public Tile(TileSet tileset, uint x, uint y)
 {
     this.sprite = new Sprite(tileset.GetTile (x, y));
 }