public static void Atack(PictureBox pic, Label des, Button right, Button Left) { pic.Image = Image.FromFile("Bill3.jpg"); des.Text = "You hurt Pennywise and come out unharmed!"; right.Text = "Go back"; right.Visible = true; Left.Visible = false; right.Click += (sender, args) => { pic.Image = Image.FromFile("FGO.jpg"); des.Text = ""; right.Visible = false; Left.Visible = false; Aappearances.Starter ap = new Aappearances.Starter(); ap.BoolBill(); //Volver pantalla }; }
public static void Hug(PictureBox pic, Label des, Button right, Button Left) { pic.Image = Image.FromFile("Bill2.jpg"); des.Text = "When you hug him, you realize that Georgie was \n Pennywise all along, and he eats you. \n GAME OVER"; right.Visible = true; Left.Visible = false; right.Text = "Exit"; right.Click += (sender, args) => { pic.Image = Image.FromFile("FGO.jpg"); des.Text = ""; right.Visible = false; Left.Visible = false; Aappearances.Starter ap = new Aappearances.Starter(); ap.BoolBill(); //Volver pantalla }; }
public static void Huir(PictureBox pic, Label des, Button right, Button Left, Characters player) { player.takeDamage(player, 10); pic.Image = Image.FromFile("Bill3.jpg"); des.Text = "You managed to escape Pennywise but with some bruises."; right.Text = "Go back"; right.Visible = true; Left.Visible = false; right.Click += (sender, args) => { pic.Image = Image.FromFile("FGO.jpg"); des.Text = ""; right.Visible = false; Left.Visible = false; Aappearances.Starter ap = new Aappearances.Starter(); ap.BoolBill(); //Volver pantalla }; }