Ejemplo n.º 1
0
 public TileEntity(TileSet tset, string shortcut, Vector2f position = new Vector2f(), int depth = 0)
     : this(tset, tset.GetTilePosition (shortcut), position, depth)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 3
0
 public TileEntity(TileSet tset, Vector2u tileindex, Vector2f position = new Vector2f(), int depth = 0)
     : this(tset, tileindex.X, tileindex.Y, position, depth)
 {
 }
Ejemplo n.º 4
0
 public Tile(TileSet tileset, uint x, uint y)
 {
     this.sprite = new Sprite(tileset.GetTile (x, y));
 }