コード例 #1
0
ファイル: Eddie2.cs プロジェクト: santiadlv/ProyectoV1
 public static void Correr(PictureBox pic, Label des, Button right, Button Left)
 {
     pic.Image     = Image.FromFile("Ed2.jpg");
     des.Text      = "The leper turns into Pennywise, grabs you and eats you.\n GAME OVER";
     right.Text    = "Exit";
     Left.Visible  = false;
     right.Visible = true;
     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.BoolEd();
         //Volver pantalla
     };
 }
コード例 #2
0
 public static void In(PictureBox pic, Label des, Button right, Button Left)
 {
     pic.Image     = Image.FromFile("Edin.jpg");
     des.Text      = "Pennywise lets you escape and you make it home safely.";
     right.Text    = "Go back";
     Left.Visible  = false;
     right.Visible = true;
     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.BoolEd();
         //Volver pantalla
     };
 }
コード例 #3
0
 public static void At(PictureBox pic, Label des, Button right, Button Left, Characters player)
 {
     player.takeDamage(player, 20);
     pic.Image     = Image.FromFile("Edit.jpg");
     des.Text      = "You attack Pennywise, but he strikes \n back and lose health. Still, you manage to escape.";
     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.BoolEd();
         //Volver pantalla
     };
 }