Another Class

We need a class to define the location of the invader. The map coordinat is cartesian (X, Y) coordinat. Therefore, we need another class called Point.cs

class Point
{
    public readonly int X;
    public readonly int Y;

    public Point(int x, int y)
    {
        X = x;
        Y = y;
    }
}

results matching ""

    No results matching ""