Beispiel #1
0
 static void GetInitialValues()
 {
     Console.Clear();
     columns = Console.WindowWidth;
     rows    = Console.WindowHeight;
     horse   = new Horse(0, rows / 2 - 1);
     area    = new Areas(Console.WindowWidth - 1, 15);
     river   = new River(rows - area.PositionY - area.Height - 5, columns, 0, area.PositionY + area.Height + 4);
     bridge  = new Bridge(columns, 0, area.PositionY - 3, area.PositionY + area.Height);
     column  = new List <Column>();
     column.Add(new Column(columns / 4, bridge.DownWallPositionY + Bridge.Height));
     column.Add(new Column(columns - columns / 4 - 1, bridge.DownWallPositionY + Bridge.Height));
     clouds    = new Clouds(0, bridge.UpWallPositionY - 6);
     bonus     = 0;
     shot      = new List <Shot>();
     mouse     = new List <Mouse>();
     generator = new Random();
 }
Beispiel #2
0
 private static void GetInitialValues()
 {
     Console.Clear();
     columns = Console.WindowWidth;
     rows = Console.WindowHeight;
     horse = new Horse(0, (rows / 2) - 1);
     area = new Areas(columns - 1, 15);
     river = new River((rows - area.PositionY - area.Height) - 5, columns, 0, (area.PositionY + area.Height) + 4);
     bridge = new Bridge(columns, 0, area.PositionY - 3, area.PositionY + area.Height);
     column = new List<Column>();
     column.Add(new Column(columns / 4, bridge.DownWallPositionY + Bridge.Height));
     column.Add(new Column(columns - (columns / 4) - 1, bridge.DownWallPositionY + Bridge.Height));
     clouds = new Clouds(0, bridge.UpWallPositionY - 6);
     bonus = 0;
     shot = new List<Shot>();
     mouse = new List<Mouse>();
     generator = new Random();
 }