Ejemplo n.º 1
0
        private void CentinelaAparicion_Tick(object sender, EventArgs e)
        {
            /////////////////////////////////////
            //// APARICION DEL CENTINELA ////////
            /////////////////////////////////////

            if (tiempo == 195)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
            }
            if (tiempo == 160)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
            }

            if (tiempo == 180)
            {
                Centinela.Location = new Point(926, 118);
            }

            if (tiempo == 140)
            {
                Centinela.Location = new Point(926, 118);
            }
            if (tiempo == 100)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
            }
            if (tiempo == 800)
            {
                Centinela.Location = new Point(926, 118);
            }

            if (tiempo == 50)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
            }
            if (tiempo == 40)
            {
                Centinela.Location = new Point(926, 118);
            }

            ////////////////////////////////////////////
            ////COLISION ENTRE CENTINELA Y MONSTRUO/////
            ////////////////////////////////////////////
            if (Poder.IntersectsWith(Monstruo))
            {
                Pierdes2Lv3.Stop();
                TiempoPoder.Start();
                Duracion.Visible   = true;
                Centinela.Location = new Point(926, 118);
            }
        }
Ejemplo n.º 2
0
 private void Nuevojuego()//creación del método antes solicitado
 {
     //creamos los objetos con los pictureboxes vacantes, con su respectiva clase
     goku    = new Sayayin(imagenGoku, "Goku");
     freezer = new Changlong(ImagenFreezer, "Freezer");
     krillin = new Humano(ImagenKrillin, "Krillin");
     // musicadeFondo = new SoundPlayer();
     // musicadeFondo.Load();
     Animaciontimer.Start();
     AnimacionKrillin.Start();
     TiempoPoder.Start();
     relojEnergia.Start();
     //musicadeFondo.SoundLocation = "C:/Users/lftn9/Desktop/el-Ansioso.wav";
     // musicadeFondo.PlayLooping();
 }
Ejemplo n.º 3
0
        ///////////////////////////////////////
        //////// LABEL DE TIEMPO PODER/////////
        ///////////////////////////////////////
        private void TiempoPoder_Tick(object sender, EventArgs e)
        {
            tiempoCentinela--;
            Duracion.Text = "Duracion Efecto : " + tiempoCentinela;

            if (tiempoCentinela == 0)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
                Centinela.Location = new Point(926, 118);
                Pierdes2Lv3.Start();
                TiempoPoder.Stop();
                tiempoCentinela  = 10;
                Duracion.Text    = "Duracion Efecto : " + tiempoCentinela;
                Duracion.Visible = false;
            }
        }
Ejemplo n.º 4
0
        private void CentinelaAparicion_Tick(object sender, EventArgs e)
        {
            /////////////////////////////////////
            //// APARICIONES DEL CENTINELA ////////
            /////////////////////////////////////

            if (tiempo == 295)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
            }
            if (tiempo == 260)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
            }

            if (tiempo == 275)
            {
                Centinela.Location = new Point(926, 118);
            }

            if (tiempo == 250)
            {
                Centinela.Location = new Point(926, 118);
            }
            if (tiempo == 200)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
            }
            if (tiempo == 190)
            {
                Centinela.Location = new Point(926, 118);
            }

            if (tiempo == 100)
            {
                Centinela.Location = new Point(Mov.Next(650), (Mov.Next(370)));
            }
            if (tiempo == 80)
            {
                Centinela.Location = new Point(926, 118);
            }


            ////////////////////////////////////////////
            ////COLISION ENTRE CENTINELA Y MONSTRUO/////
            ////////////////////////////////////////////
            if (Poder.IntersectsWith(Monstruo))
            {
                Pierdes2Lv4.Stop();
                TiempoPoder.Start();
                Duracion.Visible   = true;
                Centinela.Location = new Point(926, 118);
            }
            if (tiempoCentinela == 0)
            {
                Pierdes2Lv4.Start();
                TiempoPoder.Stop();
                tiempoCentinela    = 10;
                Duracion.Text      = "Duracion Efecto : " + tiempoCentinela;
                Duracion.Visible   = false;
                Centinela.Location = new Point(926, 118);
            }
        }