private void BlackStepMove()
{
if (_DoodlJumper.Lose != true)
foreach (Step p in _steps[(DoodleJumper.Top + (-1) * this.AutoScrollPosition.Y + ApplicationSettings.ScrollSecondNumber) / ApplicationSettings.StepsCount])
{
if ((p.role == true) && (p.left == true))
{
p.label.Left++;
p.x1++;
p.x2++;
if (p.label.Left > ApplicationSettings.StepsRightBorder)
{
p.left = false;
}
}
if ((p.role == true) && (p.left == false))
{
p.label.Left--;
p.x1--;
p.x2--;
if (p.label.Left < ApplicationSettings.StepsLeftBorder)
{
p.left = true;
}
}
}
foreach (Step p in _steps[(DoodleJumper.Top + (-1) * this.AutoScrollPosition.Y - ApplicationSettings.StepsRightBorder) / ApplicationSettings.StepsCount])
{
if ((p.role == true) && (p.left == true))
{
p.label.Left++;
p.x1++;
p.x2++;
if (p.label.Left > ApplicationSettings.StepsRightBorder)
{
p.left = false;
}
}
if ((p.role == true) && (p.left == false))
{
p.label.Left--;
p.x1--;
p.x2--;
if (p.label.Left < ApplicationSettings.StepsLeftBorder)
{
p.left = true;
}
}
}
}