Пример #1
0
 public jugabilidad(string dif, int vid)
 {
     Dificultad = dif;
     Fel        = new felix(0, 0);
     Ral        = new ralph(0, 0);
     Vidas      = vid;
     Lad        = new ladrillo[5];
     for (int i = 0; i < 5; i++)
     {
         Lad[i] = new ladrillo(ral.X, ral.Y + 60);
     }
 }
Пример #2
0
        private void timer2_Tick(object sender, EventArgs e)
        {
            t++;

            ralph r = new ralph(0, 0);

            if (t == r.Coleccion.Length)
            {
                t = 0;
            }
            button1.Text          = t.ToString();
            pictureBox1.Image     = r.Coleccion[t];
            pictureBox1.BackColor = Color.Black;
        }