using System.Collections.Generic;
public static void Main()
Console.WriteLine(Vector2.One.DistanceFrom(Vector2.Zero));
public List<TileLayer> Layers = new List<TileLayer>();
public List<Entity> Entities = new List<Entity>();
public TileLayer(int width, int height)
tiles = new char[width, height];
public List<char> BlackListedTiles = new List<char>();
public Vector2(int x, int y)
public float DistanceFrom(Vector2 right)
var xTotal = right.X + X;
var yTotal = right.Y + Y;
var xSquared = Math.Pow(xTotal, 2);
var ySquared = Math.Pow(yTotal, 2);
return (float)Math.Sqrt(xSquared + ySquared);
public static Vector2 Zero = new Vector2(0,0);
public static Vector2 One = new Vector2(1,1);