コード例 #1
0
        public Image animacionNormal()
        {
            Image img = Img_Combate.ElementAt(ctdor);

            ctdor++;
            if (ctdor >= 3)
            {
                ctdor = 0;
            }
            return(img);
        }
コード例 #2
0
        public Image secuenciaCmbt()
        {
            Image img = Img_Combate.ElementAt(ctdor);

            if (Vida_Real > 0)
            {
                ctdor++;
                return(img);
            }
            else
            {
                return(img = null);
            }
        }
コード例 #3
0
        public Image animacionNormal()
        {
            Image img = Img_Combate.ElementAt(ctdor);

            if (Vida_Real > 0)
            {
                ctdor++;
                if (ctdor >= 3)
                {
                    ctdor = 0;
                }
                return(img);
            }
            else
            {
                return(img = null);
            }
        }
コード例 #4
0
        public Jugador(int clase, int exp)
        {
            this.clase       = clase;
            this.Experiencia = exp;
            switch (clase)
            {
            case 1:
                vida_Max    = 100;
                vida_Real   = vida_Max;
                mana_Max    = 80;
                mana_Real   = mana_Max;
                daño_Fisico = 17;
                daño_Magico = 15;
                defensa     = 11;
                agilidad    = 15;
                img_Mapa.Add(Properties.Resources.assasin_map1);
                img_Mapa.Add(Properties.Resources.assasin_map2);
                img_Mapa.Add(Properties.Resources.assasin_map3);
                img_Mapa.Add(Properties.Resources.assasin_map4);
                Img_Combate.Add(Properties.Resources.assasin_Idle1);
                Img_Combate.Add(Properties.Resources.assasin_Idle2);
                Img_Combate.Add(Properties.Resources.assasin_Idle3);
                Img_Combate.Add(Properties.Resources.assasin_ataque1);
                Img_Combate.Add(Properties.Resources.assasin_ataque2);
                Img_Combate.Add(Properties.Resources.assasin_ataque3);
                Img_Combate.Add(Properties.Resources.assasin_ataque4);
                Img_Combate.Add(Properties.Resources.assasin_ataque5);
                Img_Combate.Add(Properties.Resources.assasin_ataque6);
                break;

            case 2:
                vida_Max    = 120;
                vida_Real   = vida_Max;
                mana_Max    = 50;
                mana_Real   = mana_Max;
                daño_Fisico = 19;
                daño_Magico = 9;
                defensa     = 14;
                agilidad    = 8;
                img_Mapa.Add(Properties.Resources.warrior_map1);
                img_Mapa.Add(Properties.Resources.warrior_map2);
                img_Mapa.Add(Properties.Resources.warrior_map3);
                img_Mapa.Add(Properties.Resources.warrior_map4);
                Img_Combate.Add(Properties.Resources.warrior_Idle1);
                Img_Combate.Add(Properties.Resources.warrior_Idle2);
                Img_Combate.Add(Properties.Resources.warrior_Idle3);
                Img_Combate.Add(Properties.Resources.warrior_ataque1);
                Img_Combate.Add(Properties.Resources.warrior_ataque2);
                Img_Combate.Add(Properties.Resources.warrior_ataque3);
                Img_Combate.Add(Properties.Resources.warrior_ataque4);
                Img_Combate.Add(Properties.Resources.warrior_ataque5);
                Img_Combate.Add(Properties.Resources.warrior_ataque6);
                break;

            case 3:
                vida_Max    = 80;
                vida_Real   = vida_Max;
                mana_Max    = 120;
                mana_Real   = mana_Max;
                daño_Fisico = 8;
                daño_Magico = 20;
                defensa     = 12;
                agilidad    = 11;
                img_Mapa.Add(Properties.Resources.wizard_map1);
                img_Mapa.Add(Properties.Resources.wizard_map2);
                img_Mapa.Add(Properties.Resources.wizard_map3);
                img_Mapa.Add(Properties.Resources.wizard_map4);
                Img_Combate.Add(Properties.Resources.wizard_Idle1);
                Img_Combate.Add(Properties.Resources.wizard_Idle2);
                Img_Combate.Add(Properties.Resources.wizard_Idle3);
                Img_Combate.Add(Properties.Resources.wizard_ataque1);
                Img_Combate.Add(Properties.Resources.wizard_ataque2);
                Img_Combate.Add(Properties.Resources.wizard_ataque3);
                break;
            }
        }