Ejemplo n.º 1
0
 public void Go(int number)
 {
     Moving.RotateFileSave rotateFile = new Moving.RotateFileSave();
     rotate = rotateFile.Load();
     for (int i = 0; i < number; i++)
     {
         if (rotate.isTop)
         {
             point = new Point(point.X, point.Y - 5);
         }
         else if (rotate.isBack)
         {
             point = new Point(point.X, point.Y + 5);
         }
         else if (rotate.isLeft)
         {
             point = new Point(point.X + 5, point.Y);
         }
         else if (rotate.isRight)
         {
             point = new Point(point.X - 5, point.Y);
         }
         CodeGame.MyForm.SetPlayerPoint(point);
         CodeGame.MyForm.Refresh();
     }
 }
Ejemplo n.º 2
0
 public Load()
 {
     Moving.RotateFileSave rotateSave = new Moving.RotateFileSave();
     rotate = rotateSave.Load();
     Moving.PosSaveFile posSaveFile = new Moving.PosSaveFile();
     move = posSaveFile.Load();
 }