Esempio n. 1
0
		private void InitializeRabbits()
		{
			Rabbits = new Rabbit[width,height];
			growCell = new float[width,height];
			for (int x = 0; x < width; x++)
				for (int y = 0; y < height; y++)
					Rabbits[x, y] = new Rabbit(CalculatePositionOfMatrixRabbit(x, y), rabbitSize);
		}
Esempio n. 2
0
 private void InitializeRabbits()
 {
     Rabbits  = new Rabbit[width, height];
     growCell = new float[width, height];
     for (int x = 0; x < width; x++)
     {
         for (int y = 0; y < height; y++)
         {
             Rabbits[x, y] = new Rabbit(CalculatePositionOfMatrixRabbit(x, y), rabbitSize);
         }
     }
 }
Esempio n. 3
0
 private Renderable CreateRabbit(int x, int y)
 {
     return rabbits[x, y] = new Rabbit(rabbitImage, CalclatePosition(x, y));
 }