public void Step() { while (Delta != MainForm.sizeCell + 5) { Move(kolobok, Delta); for (int i = 0; i < Tanks.Count; i++) { Move(Tanks[i], Delta); } Delta += 5; map.Image = backgroundMap; return; } kolobok.Move(Obstacles); Delta = 5; Move(kolobok, Delta); for (int i = 0; i < Tanks.Count; i++) { if (Tanks[i].Collide(kolobok)) { gameOver = true; return; } Tanks[i].Move(Obstacles, Tanks); if (Tanks[i].Collide(kolobok)) { gameOver = true; return; } Move(Tanks[i], Delta); } Delta += 5; map.Image = backgroundMap; }