Exemplo n.º 1
0
 public static void huir(PictureBox pic, Label des, Button Right, Button Left)
 {
     pic.Image     = Image.FromFile("Ben3.jpg");
     des.Text      = "You managed to attack the monster without getting hurt.";
     Right.Visible = true;
     Left.Visible  = false;
     Right.Text    = "Go back";
     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.BoolBen();
         //Volver pantalla
     };
 }
Exemplo n.º 2
0
 public static void salir(PictureBox pic, Label des, Button Right, Button Left, Characters player)
 {
     player.takeDamage(player, 10);
     pic.Image     = Image.FromFile("Ben2.1.jpg");
     des.Text      = "The Bullies caught you and you lose health. \n End of scene.";
     Right.Text    = "Go back";
     Left.Visible  = false;
     Right.Visible = true;
     Right.Click  += (sender, args) =>
     {
         playerChoices.addToList("The bullies caught you.");
         pic.Image     = Image.FromFile("FGO.jpg");
         des.Text      = "";
         Right.Visible = false;
         Left.Visible  = false;
         Aappearances.Starter ap = new Aappearances.Starter();
         ap.BoolBen();
         //Volver pantalla
         //Menos salud
     };
 }