Exemplo n.º 1
0
        private async void skeletonAttacks_Click(object sender, EventArgs e)
        {
            Knight.ReceiveDamage(Skeleton.MakeDamage());
            Update_All();
            skeletonPictureBox.Image = Image.FromFile(@"E:\Anton Hacker\KnightVSSkeleton-master\KnightVSSkeleton-master\Assets\Skeleton_Attack.gif");
            await Task.Delay(1000);

            skeletonPictureBox.Enabled = false;
            skeletonPictureBox.Enabled = true;
            skeletonPictureBox.Image   = Image.FromFile(@"E:\Anton Hacker\KnightVSSkeleton-master\KnightVSSkeleton-master\Assets\Skeleton_Idle.gif");
        }
Exemplo n.º 2
0
 private void skeletonAttacks_Click(object sender, EventArgs e)
 {
     knight.ReceiveDamage(skeleton.makeDamage());
     Update_All();
 }