public TileMap(Vector2 position, Tile tile, int width, int height) { this.position = position; selectedTile = tile; this.Width = width; this.Height = height; }
public Selected(Vector2 position) { this.position = position; menu = GameUsage.selectedMenu; tile = new Tile(0, new Vector2(position.X + menu.Width / 2, position.Y + menu.Height / 2), new Point(0, 0)); tile.position.X -= tile.srcRect.Width / 2; tile.position.Y -= tile.srcRect.Height / 2; }