Beispiel #1
0
        public void moveTo(HolySpirit holySpirit)
        {
            pictureBox.BringToFront();
            int xSpeed = 10;

            while (x >= holySpirit.x + holySpirit.width)
            {
                pictureBox.Left = x - xSpeed;
                x = x - xSpeed;
                Thread.Sleep(10);
            }

            while (x <= originalX)
            {
                pictureBox.Left = x + xSpeed;
                x = x + xSpeed;
                Thread.Sleep(10);
            }
            x = originalX;
            pictureBox.Left = originalX;
            int random = new Random().Next(140, 160);

            holySpirit.HP            -= random;
            holySpirit.HPLabel.Width -= (int)(random * 1.0 / 1000 * 256);
        }
Beispiel #2
0
 public Form1()
 {
     InitializeComponent();
     HS   = new HolySpirit(HSBox, HPOne);
     LoEC = new LordofEssentialChaos(LoECBox, HPTwo);
     STR  = new SaintTingRey(STRBox, HPThree);
     DTI  = new DarkThunderlshulandi(DTIBox, HPFour);
 }
Beispiel #3
0
 public Form1()
 {
     InitializeComponent();
     holySpirit = new HolySpirit(HolySpiritBox, HPLeft);
     loEC       = new LoEC(LoECBox, HPRight);
 }