Esempio n. 1
0
        /// <summary>
        /// Evento del instante cuando la vida del zombie baja.
        /// </summary>
        /// <param name="source">Fuente del evento.</param>
        /// <param name="e">Argumentos del evento.</param>
        void juego_OnVidaBajada(object source, EventArgs e)
        {
            this.pBVidaZombie.Value = juego.VidaZombi;
            ay.Play();
            if (pBVidaZombie.Value == 0)
            {
                juego.Parar();
                this.lInstrucciones.Visible = true;
                this.lGameOver.Visible      = true;

                this.mascota.AcumuladoAtributoResistenciaFuerza = this.mascota.AcumuladoAtributoResistenciaFuerza + juego.Puntuacion;
                this.mascota.Diversion = this.mascota.Diversion + juego.Puntuacion / 10;

                puntuaciones.InsertarPuntos(juego.Puntuacion);
            }
        }