Exemplo n.º 1
0
 public void MoveSouth(ref GameMap map)
 {
     if (map.GetPoint(coordinates[(int)Grid.Row] + 1, coordinates[(int)Grid.Col]) == "#")
     {
         Console.WriteLine("you dumb!");
     }
     else
     {
         map.SetPoint(coordinates[(int)Grid.Row], coordinates[(int)Grid.Col], ".");
         map.SetPoint(coordinates[(int)Grid.Row] + 1, coordinates[(int)Grid.Col], sprite);
         coordinates[(int)Grid.Row]+= 1;
     }
 }
Exemplo n.º 2
0
        public Player(ref GameMap map)
        {
            coordinates = map.StartCoordinates;

            map.SetPoint(coordinates[(int) Grid.Row], coordinates[(int) Grid.Col], sprite);
        }